Page 1 of 7 123 ... LastLast
Results 1 to 10 of 63

Thread: HOW-TO: Hardy on Motion Computing M1300

  1. #1
    Join Date
    Dec 2005
    Location
    Bilbao
    Beans
    327
    Distro
    Ubuntu 10.04 Lucid Lynx

    HOW-TO: Hardy on Motion Computing M1300 (Updated for Intrepid)

    So, I finally solved this thing (had been at it for at least a couple of months) so I'll just post here exactly how to do it. Most of the steps are similar to the ones on this thread, so much of this guide will be a copy-paste of that.

    1. Go to the terminal and install all of these
    Code:
    sudo apt-get install setserial wacom-tools xserver-xorg-input-wacom
    2. Map the hardware port to a virtual serial port
    Code:
    sudo setserial /dev/ttyS0 port 0x0238 irq 4 autoconfigure
    3. Check that all is working; first type
    Code:
    wacdump -f tpc /dev/ttyS0
    and move your pen around the screen. If the numbers move, keep going. If they don't you're out of luck.

    4. Put the appropriate entries in the xorg file. type
    Code:
    sudo gedit /etc/X11/xorg.conf
    , and paste these lines in there somewhere (I put them at the beginning)
    Code:
    Section "InputDevice"
    Driver "wacom"
    Identifier "stylus"
    Option "Type" "stylus"
    Option "SendCoreEvents" "true"
    Option "Device" "/dev/ttyS0"
    Option "ForceDevice" "ISDV4" # Tablet PC ONLY
    Option    "Button2"    "3"
    EndSection
    
    Section "InputDevice"
    Driver "wacom"
    Identifier "eraser"
    Option "Type" "eraser"
    Option "Device" "/dev/ttyS0"
    Option "ForceDevice" "ISDV4" # Tablet PC ONLY
    EndSection
    
    Section "InputDevice"
    Driver "wacom"
    Identifier "cursor"
    Option "Type" "cursor"
    Option "Device" "/dev/ttyS0"
    Option "ForceDevice" "ISDV4" # Tablet PC ONLY
    EndSection
    and then add these lines to the Section "ServerLayout":
    Code:
    InputDevice "cursor" "SendCoreEvents"
    InputDevice "stylus" "SendCoreEvents"
    InputDevice "eraser" "SendCoreEvents"
    4.1. (Optional for screen rotatiOn in step 8 ). Add these lines to the "Device" section:
    Code:
    	Option		"RandRRotation"	"on"
    	Option		"NvAGP" 	"1"
    	Option		"DRI"		"false"
    WARNING:This last line will disable3D acceleration but i'ts neccesary.
    Click the save button and close gedit.

    5. Make these changes permanent by typing
    Code:
    sudo dpkg-reconfigure setserial
    and selecting the option "autosave once"

    6. Restart and it should all be working!

    After this my tablet worked just fine, but the other guides included this last step so I'll post it here as a "last resor" measure.

    7. Type
    Code:
    sudo xsetpointer stylus
    I actually don't know what this command is for, so if someone were to illuminate me...

    I know there aren't a lot of M1300 users out there but still I wish when I bought mine there was a guide just like this one to set it up.
    This is working for hardy but presumably it would work with future versions as well.

    UPDATED INSTRUCTIONS FOR INTREPID

    All right, so Intrepid is here, so here is what needs to be done differently in order to setup the wacom tablet.
    • Replace step 4 in these instructions for the ones in this post

    • For screen rotation, just follow the usual steps (in the next post)

    • For screen brightness, the steps described 2 posts from this one are no longer necessary. Just add the screen brightness applet to the gnome panel and it should Just Work


    Got the battery problem solved. Follow these instructions

    trainerjonathan located the thread where there are instructions to get an onscreen keyboard at login
    Quote Originally Posted by trainerjonathan View Post
    By the way the instructions to add the on-screen keyboard to the login screen in this post worked perfectly for me.
    __________________________________________________ ______
    List of Tablet PC's working with Linux and links to the how-to's
    Last edited by priegog; March 12th, 2009 at 10:28 PM. Reason: Added OSK link

  2. #2
    Join Date
    Dec 2005
    Location
    Bilbao
    Beans
    327
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOW-TO: Hardy on Motion Computing M1300

    8. SCREEN ROTATION. After step 4.1, you now only need to make sure the package xserver-xgl is NOT installed. After that,take the 2 scripts I made (attached) and place them in /usr/local/bin/ (you'll need to be root. if you don't know how to, type in the terminal
    Code:
    sudo nautilus /usr/local/bin/
    and move the script files to the window that opens. Then you can create a panel launcher for each one (right-click on panel > add to panel > custom application launcher) and pasting in the "command" field
    Code:
    sh /usr/local/bin/portrait.sh
    . Do the same for the other launcher, but changing "portrait" with "landscape" And that's it, it should work.
    Attached Files Attached Files
    Last edited by priegog; June 25th, 2008 at 11:52 AM. Reason: edits to improve readibility

  3. #3
    Join Date
    Dec 2005
    Location
    Bilbao
    Beans
    327
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOW-TO: Hardy on Motion Computing M1300

    9 SCREEN BRIGHTNESS
    This one took me a while to figure out. It's not as easy as, say, the rotation scripts since to do this it is necesary to have root acces. So
    this will be divided into 2 parts: One to help us make our scripts run without giving them a password and another one to make the scripts themselves.
    9.1 sudoers file.
    So this is a weird little file that tells the system which parts of the system can be run without requiring a password, so we're gonna modify it to let us run the brightness scripts from a desktop or panel launcher.
    So since this file is weird and won't let itself be modified we have to change the permissions. I do it all graphically, so type
    Code:
    sudo nautilus /etc
    There you can find the sudoers file, so right-click on it and select properties. Go to the permissions tab and change both access properties to Read and Write. Then close and we're ready to modify it.
    Code:
    sudo gedit /etc/sudoers
    and at the end (the position is important), paste this
    Code:
    jerry ALL=NOPASSWD: /home/jerry/myscripts/
    substituting of course jerry with your username and the path to a folder where you will keep the scripts we'll make next.
    Now, click on save, close gedit and do the same thing we did to change the permissions and change them back to Read-only.
    If you're paranoid (or careful) enough I'm sure you backed up the sudoers file before modifying it, so now comes the moment to check if your modification is valid or not.
    Code:
    sudo visudo -c
    If it passes the test, it will give you a one line output saying so. If not, restore from backup and try again.
    9.2 The scripts
    So now it's time to make the scripts that will change the brightness themselves. Just download the one I uploaded and copy/modify it to make for the rest of brightnesses. This one is already an executable, so if you want to make your own make sure to make them so. The first script is called br1 because it will set the brightness to 1 (on a scale from 1 to 10). So when copying/modifying them (right click > open with > text editor) change the 1 in
    Code:
    echo 1 > /proc/acpi/video/GFX0/LCD/brightness
    to the number you want it to set it to. Make sure to change the filename to reflect the brightness it will set the backlight to, and also make sure to move all of the scripts to that folder you specified in the sudoers file.
    Now it's time to create the launchers that will execute the scripts. Create a new launcher in a folder, the Desktop or the Panel, name it and in the command field put
    Code:
    sudo /home/jerry/myscripts/br1.sh
    (again substituting with your own path).
    And that is all, it should work when you activate the launchers.
    Attached Files Attached Files
    • File Type: sh br1.sh (108 Bytes, 29 views)
    Last edited by priegog; June 25th, 2008 at 12:44 PM.

  4. #4
    Join Date
    Jun 2008
    Beans
    Hidden!

    Re: HOW-TO: Hardy on Motion Computing M1300

    I had been reluctant to take another stab at fixing my screen brightness after experiencing a chmod error because I edited the permissions on sudoers. However, recent troubles with my tablet´s battery life prompted me to try again, and using visudo (without changing the file permissions) worked perfectly! (I followed the instructions for editing sudoers from this site; in short, I typed o to put it into editing mode, and :wq to save my changes). Now I´m going to add brightness launchers for 1-10--Xubuntu has a neat option of putting launchers in menus, which conserves space and makes this more convenient to do. Thanks for posting this how-to!

  5. #5
    Join Date
    Dec 2005
    Location
    Bilbao
    Beans
    327
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOW-TO: Hardy on Motion Computing M1300

    yeah, I reckon visudo is the best way to do it but since I can't use vi to save my life I had to work around that. I'm glad it worked out for you in the end.

  6. #6
    Join Date
    May 2005
    Beans
    25

    Re: HOW-TO: Hardy on Motion Computing M1300

    Hi,

    Great post, thanks for doing this. Today I installed Ubuntu on a Motion LS800 we had laying around at work. With a few pointers from your How-To, the digitizer is working great.

    If you don't mind, I do have a couple of questions.

    1. How do you deal with not having an on-screen keyboard at the Ubuntu login window? The pen works great, but with no keyboard, I can't input my username and password.

    2. Do you use any kind of handwriting recognition software? If so, what? Or do you just use OnBoard for text input?

    Thanks,

    Andy

  7. #7
    Join Date
    Dec 2005
    Location
    Bilbao
    Beans
    327
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOW-TO: Hardy on Motion Computing M1300

    Hi: I'm glad it worked for you.
    To answer your first question, the truth is that on all my computers I like to have them autologin to save time, so I do not have to deal with the login screen. I do know, however about a little hack people use for exactly these situations for summoning an onscreen keyboard at login. I do not exactly know how it's done, but I'm sure if you search these forums for "login onscreen keyboard" you'll find what you're looking for.
    As for the second question: the answer is a little complicated. When I need to do serious writing (like I'm doing right now answering to this post) I use a bluetooth foldable keyboard, and that works great. However, when I'm surfing, checking emails and stuff I use a program called CellWriter (available in the official repos) which works pretty well for recognizing handwriting, even tho it has the limitation of requiring you to write each letter in a separate box. It also has a toggle that transforms it into an onscreen keyboard, so there's no need for 2w separate programs there. It is truly sad the state of handwriting recognition software is in on Linux.
    Hoperfully ubuntu mobile and all these projects will push all of this forward.
    So there you go, hope that helps.

  8. #8
    Join Date
    May 2005
    Beans
    25

    Re: HOW-TO: Hardy on Motion Computing M1300

    Hi again,

    Does suspend and/or hibernate work on your M1300? I can get my LS800 to sleep without a problem. It just won't wake up unless you toggle the power button. Ubuntu then wakes the computer and promptly shuts it down. I imagine that pressing the power button is interpreted as a power-down acpi event. I haven't quite figured out a way around that.

    Just FYI, I gave Ubuntu 8.1 a try on it and the issue with 3D acceleration and xrandr appears to be fixed.

    Thanks,
    Andy

  9. #9
    Join Date
    Dec 2005
    Location
    Bilbao
    Beans
    327
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOW-TO: Hardy on Motion Computing M1300

    Hi. Yeah, suspend works great on mine, but I do need to press the power button to wake it up. I don´t use hibernate so I wouldn´t know about that one, tho. I imagine you could solve the shutting down problem by associating a different function (or none at all) to the power button on the power settings.
    I have a lot of expectations from 8.10 so I´m glad to hear stuff is being fixed on it.

  10. #10
    Join Date
    May 2005
    Beans
    25

    Re: HOW-TO: Hardy on Motion Computing M1300

    Hi,

    I'm still unable to get suspend to work correctly. I've been digging into it a bit further and I don't think hitting the power button to wake the computer is creating an ACPI event. When I look through the acpid logs I see the power button press to suspend the computer but nothing after that when I press it to wake the computer.

    I was wondering if you could do me a favor and look at your acpid log to see if using the power button to wake the computer logs an event?

    Thanks,

    Andy

Page 1 of 7 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •