Setup Touchscreen & Suspend on Fujitsu P1120 Subnotebook?
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using Fedora Core 3 (2.6.11-1.14_FC3) on a Toshiba S1410-303. So the details might vary slightly from your situation.
First, make sure you have the ACPI module loaded in the kernel:
#lsmod | grep acpi
if it's not there, add "acpi=on" to the kernel parameters at bootup
Also make sure the ACPI daemon is running (to catch ACPI events and handle them):
#ps ax | grep acpi | grep -v grep
should return "/usr/sbin/acpid".
Now we'll need to tell the ACPI daemon to catch the event when laptop lid is closed (or opened) and run a script. To do this we create a file /etc/acpi/events/lid.conf that has following content:
event=button/lid
action=/usr/bin/s3.sh
Next, we'll need to write the /usr/bin/s3.sh script, which should contain:
Of course you'll need to replace [misbehaving module] with the names of the modules that might cause the suspension to fail. Possible perps are: button, ehci_hcd, uhci_hcd, nvidia, and many others.
#lsmod | less
will provide information about what's loaded, so you can experiment with this a bit. Make sure to SAVE YOUR WORK, as failing to resume will require an unclean shutdown/reboot to get things running again.
Finally, if the suspend/resume is going fine, but the display is not re-initialized properly you can add "acpi_sleep=s3_bios" the kernel parameters to have the BIOS handle the display suspension/resume.
one question on the misbehaving modules. when my laptop comes back from suspend, the touchpad loses the ability to do tap clicks. would adding the touchpad module to the s3.sh fix the problem? if so, what is the touchpad module?
What kernel are you running? Because tap clicks for touchpads under kernel 2.6.11 are broken, this is fixed in 2.6.12 but this kernel is still in rc4.
If the pad works fine BEFORE suspend and breaks after resume - I am guessing here, so don't take my words for granted - but I think X is not re-initialized properly. You can try VTing and suspending there, then switching back to X after resume.
Dear ArchiMark,
Please note that the instructions provided are for SUSPEND TO RAM...
I noticed in your post that you are also asking about hibernation (supend to disk). So a little word of caution, if you're using a dual boot setup, S4 (suspend to disk) is not recommended, unless you know exactly what you're doing. Personally, I can't risk the data on my laptop and would hate to have to restore from backups, which is why i steered clear of S4 until it is more thoroughly field tested.
S3 however, consumes next-to-nothing in power and provides faster restore time than S4.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.