So, it's automatically logging in. Now, for an on-screen keyboard.
Onboard (and onboard-settings) were installed by default (in /usr/bin, thus in $PATH). Ran the settings first, nice little dialogue, didn't do much obviously. Ran onboard from command line, segmentation fault. Hmm.
Can't be getting into a crazy core dump debug session, run up synaptic, and reinstall it; the same.
Ok, try out gok. That pops up with a 3x3 grid, a rather complex set of preferences (~8 tabs?!) and after 5 minutes tinkering, I saw no keyboard. Off.
Next, install orca. That pops up with a grand window, talking to me. As with gok, lots of tabs and speech and braille and all sorts, no keyboard. Off.
Run onboard again, feeling more desperate. The biggest keyboard I ever saw appeared, with a weird keyboard layout - so some progress... Open up settings, choose a new layout, don't do much else, then when I get the keyboard, it's qwerty.
It can be resized via gui handles easily enough, and seems to remember position & size. Set up a shortcut in top xfce launcher panel for easy access. And it works well enough with firefox.
I think i'll need to tinker with placement, size and things, it seems to get in the way a bit...
I may also consider xvkbd too...
[in summary, I don't know why it didn't work first time, I can only presume installing a whole bunch of stuff with orca helped out. gok is truly mystifying, so I wouldn't recommend that. all in all, a rather annoying experience for something so simple.]
Tuesday, May 20, 2008
Friday, May 16, 2008
onscreen keyboard
One of the reasons I was going to approach this part next was for the login screen. There's a lot of topics and threads about how to get this going. The old xkbd is mentioned a lot, as is SOK, now renamed onBoard - which is an annoying title, merely because of the false hits you get in google...
Nevertheless, onBoard seemed to be what I wanted.
Then it struck me that what I really wanted to do was avoid any kind of login altogether, have it done automatically on the one user account that exists. That way, I need not bother with any hassle of having an onscreen keyboard early (i.e. at login time), and I could call it up when I needed it, when browsing for example.
So, a quick check in the login settings panel, automatic login, choose user in pulldown, done. No login window ever again; straight to desktop after turning it on. Lovely.
Now, at this stage, I could pretty much leave it as-is; I can turn it on, click on firefox, click on bookmarks and that's all I need. Or click on a video, watch video, done.
Except, onBoard doesn't seem to be resident, at least, running it from /usr/bin doesn't do much. Hardware buttons don't work, and they're nice, particularly for page scrolling and right clicks. Standby and hibernate seem a little er, not working. All in all, nothing critical, I could stop here, but it's feels kind of half baked.
Nevertheless, onBoard seemed to be what I wanted.
Then it struck me that what I really wanted to do was avoid any kind of login altogether, have it done automatically on the one user account that exists. That way, I need not bother with any hassle of having an onscreen keyboard early (i.e. at login time), and I could call it up when I needed it, when browsing for example.
So, a quick check in the login settings panel, automatic login, choose user in pulldown, done. No login window ever again; straight to desktop after turning it on. Lovely.
Now, at this stage, I could pretty much leave it as-is; I can turn it on, click on firefox, click on bookmarks and that's all I need. Or click on a video, watch video, done.
Except, onBoard doesn't seem to be resident, at least, running it from /usr/bin doesn't do much. Hardware buttons don't work, and they're nice, particularly for page scrolling and right clicks. Standby and hibernate seem a little er, not working. All in all, nothing critical, I could stop here, but it's feels kind of half baked.
touchscreen works
So, headed over to ubuntu forums and downloaded the patched fpit driver that ace214 posted. Exploded gz and copied .so file into /usr/lib/xorg/modules/input - renaming [moving] the existing one (to have a .old extension, just in case...). Restart.
It kind of worked, at least, it didn't crash and the pointer moved about when I touched the screen.
After some xorg.conf tinkering, the following seem to be required in my xorg.conf
Section "InputDevice"
Identifier "Touchscreen"
Driver "fpit"
Option "Device" "/dev/ttyS0"
Option "BaudRate" "9600"
Option "MaximumXPosition" "4096"
Option "MaximumYPosition" "4096"
Option "MinimumXPosition" "0"
Option "MinimumYPosition" "0"
Option "Passive" "true"
Option "TrackRandR"
Option "SendCoreEvents" "true"
EndSection
I have yet to test the screen rotation, so I may revisit the TrackRandR section.
I also commented out the (default added) Synaptics Touchpad section, which refers to /dev/psuax, and therefore the ServerLayout section (at the end of xorg.conf) refers to Touchscreen (as above) and not Synaptics.
Not putting BaudRate made the cursor jump wildly; although it could be me adding Option "BaudRate" with no parameter was the problem.
I also tried various combinations of (previously posted) variations on Max/Min X & Y, and found that max = 4096 and min = 0 is perfect - it tracks the pointer perfectly.
Next steps; button panel - mostly to enable right clicks and screen rotation (although i'm not too bothered about that)
I also need to try it undocked minus keyboard and mouse, i've a niggling feeling that since my mouse is the core pointer, something may occur. I hope setting touchscreen as core pointer will work too...
I'll post my xorg.conf when it's 100%
It kind of worked, at least, it didn't crash and the pointer moved about when I touched the screen.
After some xorg.conf tinkering, the following seem to be required in my xorg.conf
Section "InputDevice"
Identifier "Touchscreen"
Driver "fpit"
Option "Device" "/dev/ttyS0"
Option "BaudRate" "9600"
Option "MaximumXPosition" "4096"
Option "MaximumYPosition" "4096"
Option "MinimumXPosition" "0"
Option "MinimumYPosition" "0"
Option "Passive" "true"
Option "TrackRandR"
Option "SendCoreEvents" "true"
EndSection
I have yet to test the screen rotation, so I may revisit the TrackRandR section.
I also commented out the (default added) Synaptics Touchpad section, which refers to /dev/psuax, and therefore the ServerLayout section (at the end of xorg.conf) refers to Touchscreen (as above) and not Synaptics.
Not putting BaudRate made the cursor jump wildly; although it could be me adding Option "BaudRate" with no parameter was the problem.
I also tried various combinations of (previously posted) variations on Max/Min X & Y, and found that max = 4096 and min = 0 is perfect - it tracks the pointer perfectly.
Next steps; button panel - mostly to enable right clicks and screen rotation (although i'm not too bothered about that)
I also need to try it undocked minus keyboard and mouse, i've a niggling feeling that since my mouse is the core pointer, something may occur. I hope setting touchscreen as core pointer will work too...
I'll post my xorg.conf when it's 100%
Monday, May 12, 2008
serial port for touchscreen
Ok, first thing then, serial ports (for the screen) not being picked up.
Load up synaptic and install setserial.
Run
So, step one complete. Now i'll need to upgrade the fpit driver, and I beleive a patched one is out there.
As an aside, i'm still not sure how/if setserial has indeed setup the serial port on everyboot. I've a funny feeling I need to tinker with /etc/rc.local to make sure it's called. I didn't take too long debugging, the setserial was a quick test (which seems to have passed) so i'll look later.
[update: I think I copied that same config into /etc/serial.conf - nothing else - and it seems to be keeping things working upon reboot. So either running the command above set it forever, or, setserial has installed itself somewhere (rc.d?) and picks up /etc/serial.conf every boot. Either way, it works as expected, so i'll leave this for now (until it's really bugging me..)]
Load up synaptic and install setserial.
Run
/bin/setserial /dev/ttyS0 irq 4 port 0x220 autoconfigPoint the xorg.conf touchscreen section to /dev/ttyS0 and restart X11. Everything appears normal, mouse works. Touch the screen, screen crashes and goes all knackered; I take this to be a good sign - at least the touch part is getting to the X driver (which then fails).
So, step one complete. Now i'll need to upgrade the fpit driver, and I beleive a patched one is out there.
As an aside, i'm still not sure how/if setserial has indeed setup the serial port on everyboot. I've a funny feeling I need to tinker with /etc/rc.local to make sure it's called. I didn't take too long debugging, the setserial was a quick test (which seems to have passed) so i'll look later.
[update: I think I copied that same config into /etc/serial.conf - nothing else - and it seems to be keeping things working upon reboot. So either running the command above set it forever, or, setserial has installed itself somewhere (rc.d?) and picks up /etc/serial.conf every boot. Either way, it works as expected, so i'll leave this for now (until it's really bugging me..)]
Thursday, May 8, 2008
video
My #2 use-case, after #1 of 'sofa browsing', is video playback.
I copied over a couple of large mp4's easily enough - I plugged in my old Win2k 20Gb disk in the caddy. It mounted it on the desktop, open up, copy, paste - easy.
Double click a movie, the default Xubuntu video player chokes. Maybe not the best, but hey, I prefer VLC anyway. Open up synaptic, search for VLC, click, go.
Reset video files' 'open with' to VLC, double click, opens nicely.
Plays really nicely too, smooth, even when fullscreen, sound works too. Happy.
Why better than Win2k? Well, it could be the new disk, which is 5400rpm not 4200rpm like the old one (I think). Most of me thinks it's Win2k bloat; it just didn't seem to be able to get the video in and out fast enough, hence the pausing to catch up. Generally, Xubuntu does seem snappier and more responsive than Win2k, so it passes the smaller = better test for me. 512Mb RAM seems more than enough - postpone memory upgrade.
I copied over a couple of large mp4's easily enough - I plugged in my old Win2k 20Gb disk in the caddy. It mounted it on the desktop, open up, copy, paste - easy.
Double click a movie, the default Xubuntu video player chokes. Maybe not the best, but hey, I prefer VLC anyway. Open up synaptic, search for VLC, click, go.
Reset video files' 'open with' to VLC, double click, opens nicely.
Plays really nicely too, smooth, even when fullscreen, sound works too. Happy.
Why better than Win2k? Well, it could be the new disk, which is 5400rpm not 4200rpm like the old one (I think). Most of me thinks it's Win2k bloat; it just didn't seem to be able to get the video in and out fast enough, hence the pausing to catch up. Generally, Xubuntu does seem snappier and more responsive than Win2k, so it passes the smaller = better test for me. 512Mb RAM seems more than enough - postpone memory upgrade.
wifi
Now, the tablet has a built in wifi, with a little switch on the back (on/off).
It's a prism chipset, so it was found ok.
I don't rate the wifi settings panel(s). The big network panel (in settings) has a 'enable roaming' (which is a really stupid term if you ask me), but when [un]set, I can choose my [E]SSID, but only have a choice of 2 WEP and 2 WPA. I'm lazy, and live in the middle of nowhere, so my wifi is open (with access control, etc). No go.
[and it's confusing to have wifi and wlan0 in the panel - which is which eh?]
Toggling the roaming bit lets me choose an [E]SSID on the top menu bar wifi, and that lets me choose 'None' for security.
That connects happily, but no IP addresses, or traffic, etc. Here, I decide that the inbuilt wifi is too much hassle, so dig out my D-Link DWL-122 USB wifi key - which i'd been using with Win2k anyway - it seemed to be more stable.
[update: it seems the inbuilt wifi on/off switch was in fact off... ahem. Turning it on allows the inbuilt wifi to connect. Saying that, it only gets 1 bar, while the USB stick gets at least 3. So it's fixed, but not the best anyway... Of course, i'd expect a switch set to off to kind of 'vanish' the hardware, but hey...]
Plug in USB wifi key, wait. It appears as wlan0, enable roaming, enter details in the top panel widget, and it works. Connected up, all DHCP'd, good.
Load up firefox (3, beta 5) and i'm browsing. Good.
Run up the update manager, and it tells me ~18 things need updating. Off it goes, all done. Good.
It's a prism chipset, so it was found ok.
I don't rate the wifi settings panel(s). The big network panel (in settings) has a 'enable roaming' (which is a really stupid term if you ask me), but when [un]set, I can choose my [E]SSID, but only have a choice of 2 WEP and 2 WPA. I'm lazy, and live in the middle of nowhere, so my wifi is open (with access control, etc). No go.
[and it's confusing to have wifi and wlan0 in the panel - which is which eh?]
Toggling the roaming bit lets me choose an [E]SSID on the top menu bar wifi, and that lets me choose 'None' for security.
That connects happily, but no IP addresses, or traffic, etc. Here, I decide that the inbuilt wifi is too much hassle, so dig out my D-Link DWL-122 USB wifi key - which i'd been using with Win2k anyway - it seemed to be more stable.
[update: it seems the inbuilt wifi on/off switch was in fact off... ahem. Turning it on allows the inbuilt wifi to connect. Saying that, it only gets 1 bar, while the USB stick gets at least 3. So it's fixed, but not the best anyway... Of course, i'd expect a switch set to off to kind of 'vanish' the hardware, but hey...]
Plug in USB wifi key, wait. It appears as wlan0, enable roaming, enter details in the top panel widget, and it works. Connected up, all DHCP'd, good.
Load up firefox (3, beta 5) and i'm browsing. Good.
Run up the update manager, and it tells me ~18 things need updating. Off it goes, all done. Good.
Subscribe to:
Posts (Atom)
