I should have known better. At least two of my friends warned me that changing my Samsung NC10 to Nokia Booklet 3G is
bad idea. At least when considering installing Ubuntu on it. What the heck, I have had battles before, I used to have some nice nights tweaking my desktop with older Nvidia and dualhead, Nvidia's legacy drivers and incompatible xorg ABI.
So, I got it running. I used 10.04.1 alternate install cd, cause I needed encryption also. First issue, at least for me, is that I could get only flashdrives created with Ubuntu's usb-creator-gtk working. I tried Unetbootin, I tried Pendrive Linux's usb creator. Latter didn't even boot, one created with Unetbootin didn't know how to install files from flashdrive, instead tried netinstall. Which didn't work for me, since Booklet doesn't have wired lan, and wlan doesn't work yet in installation. Good start! Problem was that I don't have any Ubuntu machines, since I normally use Debian. So I had to 1. Burn Ubuntu live-cd 2. Boot one of my laptops from it 3. Copy installation .iso to one flashdrive (since cd-live-laptop has only few hundred meg's free space) 4. Create install-flashdrive from another flashdrive
Ok, so ahead with installation. Nothing special there. It was too easy, it just worked. First boot, X resolution sucked. Known issue due to the buggy Poulsbo chipset.
First, I followed instructions from
https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo:
sudo add-apt-repository ppa:gma500/ppa && sudo apt-get update
sudo apt-get install poulsbo-driver-2d poulsbo-driver-3d poulsbo-config
And rebooted. Now also native resolution worked like a charm. Bad thing is that with Poulsbo-driver, all kinds of power management issues comes, so following same page, I:
sudo apt-get --purge remove vbetool && sudo apt-get install uswsusp
And rebooted. Now I could get suspend working with 's2ram --force'. Too bad that Ubuntu/GNOME doesn't provide directly options to change default suspend-command. So:
1. I replaced default pm-suspend with s2ram: 'sudo mv /usr/sbin/pm-suspend /usr/sbin/pm-suspend-old && sudo sudo nano /usr/sbin/pm-suspend'
/usr/sbin/pm-suspend:
#!/bin/sh
/usr/sbin/s2ram --force
2. Granted sudo-rights with NOPASSWD-option to admin-group users with 'visudo':
%admin ALL=NOPASSWD: /usr/sbin/s2ram
3. Created shortcut key ctrl-alt-p to execute '/usr/sbin/s2ram --force'
4. Changed s2ram as default suspend-command.
/etc/pm/config.d/00sleep_module:
SLEEP_MODULE="uswsusp"
/etc/pm/config.d/defaults:
S2RAM_OPTIONS="--force"
Then I played a bit with Power Management options in System - Preferences - Power Management, just to check that there's no "hibernate" anywhere, since I haven't tested '/usr/sbin/s2disk' (Suspend to Disk) yet. That's the next part.
Also, I noticed that:
1. Flash's can't be played fullscreen, only white screen shows. Not a big issues though.
2. Thunderbird can't be used. If installed from repositories, it shows blank menus & co. It's described at least here:
https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/564011. Installing Thunderbird directly from mozilla.com did worked. I did:
tar xjf thunderbird.tar.bz2
mv thunderbird/ /usr/local/
ln -s /usr/local/thunderbird/thunderbird-bin /usr/local/bin/thunderbird
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/thunderbird/
Unfortunately, I got at least one kerneloop with thunderbird:
Sep 4 23:03:03 nauris kernel: [ 5381.598586] BUG: unable to handle kernel paging request at f76f4000
Sep 4 23:03:03 nauris kernel: [ 5381.598607] IP: [] prep_new_page+0xe7/0x170
Sep 4 23:03:03 nauris kernel: [ 5381.598630] *pde = 00007067 *pte = 00002c00
Sep 4 23:03:03 nauris kernel: [ 5381.598643] Oops: 0002 [#1] SMP
Sep 4 23:03:03 nauris kernel: [ 5381.598653] last sysfs file: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1f/PNP0C0A:00/power_supply/BAT1/voltage_now
Sep 4 23:03:03 nauris kernel: [ 5381.598665] Modules linked in: fbcon tileblit font bitblit softcursor psb drm_psb agpgart i2c_algo_bit binfmt_misc rfcomm ppdev sco bridge stp bnep l2cap joydev snd_hda_codec_intelhdmi snd_hda_codec_realtek arc4 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device ath9k snd mac80211 ath uvcvideo cfg80211 psmouse lp parport soundcore sdhci_pci sdhci videodev v4l1_compat hso serio_raw btusb bluetooth i2c_isch snd_page_alloc led_class sha256_generic aes_i586 aes_generic dm_crypt usbhid hid video output pata_sch
Sep 4 23:03:03 nauris kernel: [ 5381.598825]
Sep 4 23:03:03 nauris kernel: [ 5381.598836] Pid: 3835, comm: thunderbird Not tainted (2.6.32-24-generic #42-Ubuntu) Nokia Booklet 3G
Sep 4 23:03:03 nauris kernel: [ 5381.598847] EIP: 0060:[] EFLAGS: 00010246 CPU: 1
Sep 4 23:03:03 nauris kernel: [ 5381.598857] EIP is at prep_new_page+0xe7/0x170
Sep 4 23:03:03 nauris kernel: [ 5381.598866] EAX: 00000000 EBX: f76f4000 ECX: 00000400 EDX: 0000000Sep 4 23:07:48 nauris kernel: imklog 4.2.0, log source = /proc/kmsg started.
... So I swithced to claws-mail....
EDIT
Seems that Thunderbird-issue (well, rendering-part, not the kerneloops-part) is described already here:
http://ubuntuforums.org/showpost.php?p=9600101&postcount=1467
TODO
-
Get mplayer working - Got it working by simply running this script:
http://kanotix.com/files/fix/mplayer-vaapi-latest.txt
-
Get (A)GPS working - See part II
- Test s2disk
- Check if that another thunderbird works or not.