cynfewl
August 24th, 2007, 12:42 PM
Below are some observations on running Feisty on a Toshiba Portege R100.
Video (Trident Microsystems CyberBlade XP4m32 using xorg trident driver)
The video card in this unit appears to have a known issue with acpi state change (ac -> battery). What happens is the video is resized so you only see a corner of the screen. You can fix this temporarily by switching to the first console and back (ctrl-alt F1, ctrl-alt F7). This appears to be a bug in the driver itself. A workaround for this issue is to append the kernel option vga=791 in your grub menu.lst file. My testing appeared to show that you can replicate the issue simply by trying to change the screen brightness.
Following are the options I enabled to get this workaround in place.
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
defoptions=quiet splash vga=791
My theory was the above code would append this option to any new kernels. Of course, this won't affect the current kernel, so I modified that line too.
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=4918ce99-94aa-4145-bb4f-b8783c0482c4 ro quiet splash vga=791
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
Reboot the machine so these settings go into effect. This should get you to a state where you can unplug the ac and the resolution will stay the same.
Resume
To get resume working on this laptop (suspend worked out of the box, as did hibernate), make the following changes to /etc/default/acpi-support. We need SAVE_VBE_STATE as otherwise our kernel options from above are lost when we cold boot the video driver (the POST_VIDEO=false option).
# Should we save and restore state using the VESA BIOS Extensions?
SAVE_VBE_STATE=true
# The file that we use to save the vbestate
VBESTATE=/var/lib/acpi-support/vbestate
# Should we attempt to warm-boot the video hardware on resume?
POST_VIDEO=false
I also modified /usr/share/acpi-support/TOSHIBA.config. I'm not sure if this modification did anything, but here is the contents of the new file just in case.
case "$model" in
"libretto U100"*)
ACPI_SLEEP=true
;;
"P4000"*)
ACPI_SLEEP=true
;;
"PORTEGE A100"*)
ACPI_SLEEP=true
;;
"PORTEGE A200"*)
ACPI_SLEEP=true
;;
"PORTEGE M200"*)
ACPI_SLEEP=true
;;
"PORTEGE R100"*)
ACPI_SLEEP=true
;;
"PORTEGE R200"*)
ACPI_SLEEP=true
;;
"Satellite 1900"*)
ACPI_SLEEP=true
;;
"Satellite M70"*)
ACPI_SLEEP=true
;;
"TECRA A2"*)
ACPI_SLEEP=true
;;
"TECRA A5"*)
ACPI_SLEEP=true
;;
"TECRA M2"*)
ACPI_SLEEP=true
;;
esac
With these modifications, this laptop is not only portable, but distinctly usable as well.
Video (Trident Microsystems CyberBlade XP4m32 using xorg trident driver)
The video card in this unit appears to have a known issue with acpi state change (ac -> battery). What happens is the video is resized so you only see a corner of the screen. You can fix this temporarily by switching to the first console and back (ctrl-alt F1, ctrl-alt F7). This appears to be a bug in the driver itself. A workaround for this issue is to append the kernel option vga=791 in your grub menu.lst file. My testing appeared to show that you can replicate the issue simply by trying to change the screen brightness.
Following are the options I enabled to get this workaround in place.
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
defoptions=quiet splash vga=791
My theory was the above code would append this option to any new kernels. Of course, this won't affect the current kernel, so I modified that line too.
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=4918ce99-94aa-4145-bb4f-b8783c0482c4 ro quiet splash vga=791
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
Reboot the machine so these settings go into effect. This should get you to a state where you can unplug the ac and the resolution will stay the same.
Resume
To get resume working on this laptop (suspend worked out of the box, as did hibernate), make the following changes to /etc/default/acpi-support. We need SAVE_VBE_STATE as otherwise our kernel options from above are lost when we cold boot the video driver (the POST_VIDEO=false option).
# Should we save and restore state using the VESA BIOS Extensions?
SAVE_VBE_STATE=true
# The file that we use to save the vbestate
VBESTATE=/var/lib/acpi-support/vbestate
# Should we attempt to warm-boot the video hardware on resume?
POST_VIDEO=false
I also modified /usr/share/acpi-support/TOSHIBA.config. I'm not sure if this modification did anything, but here is the contents of the new file just in case.
case "$model" in
"libretto U100"*)
ACPI_SLEEP=true
;;
"P4000"*)
ACPI_SLEEP=true
;;
"PORTEGE A100"*)
ACPI_SLEEP=true
;;
"PORTEGE A200"*)
ACPI_SLEEP=true
;;
"PORTEGE M200"*)
ACPI_SLEEP=true
;;
"PORTEGE R100"*)
ACPI_SLEEP=true
;;
"PORTEGE R200"*)
ACPI_SLEEP=true
;;
"Satellite 1900"*)
ACPI_SLEEP=true
;;
"Satellite M70"*)
ACPI_SLEEP=true
;;
"TECRA A2"*)
ACPI_SLEEP=true
;;
"TECRA A5"*)
ACPI_SLEEP=true
;;
"TECRA M2"*)
ACPI_SLEEP=true
;;
esac
With these modifications, this laptop is not only portable, but distinctly usable as well.