LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having 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



Reply
 
Search this Thread
Old 05-16-2005, 03:35 PM   #1
ArchiMark
Member
 
Registered: Sep 2004
Location: Silicon Valley
Distribution: Debian/Linux Mint/Archbang/Angstrom
Posts: 79

Rep: Reputation: 15
Question Setup Touchscreen & Suspend on Fujitsu P1120 Subnotebook?


Just installed Debian 'Sarge' on my new little Fujitsu P1120 subnotebook...Dual boots with WinXP now. Overall, works great so far!

Now would like to get touchscreen working and suspend (hibernate?) working on it.

So, what should I do or need to get to get these items working?

If there's any good reference info on this somewhere that would be great too!

Thanks for any and all help!

Mark
 
Old 05-19-2005, 10:01 AM   #2
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 30
Laptop Suspend

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:

#!/bin/bash
rmmod [misbehaving module 1]
rmmod [misbehaving module 2]
rmmod [misbehaving module n]
echo 3 > /proc/acpi/sleep
modprobe [misbehaving module n]
modprobe [misbehaving module 2]
modprobe [misbehaving module 1]

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.

goodluck

Last edited by Notwerk; 05-19-2005 at 10:14 AM.
 
Old 05-19-2005, 11:35 AM   #3
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
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?
 
Old 05-19-2005, 01:04 PM   #4
ArchiMark
Member
 
Registered: Sep 2004
Location: Silicon Valley
Distribution: Debian/Linux Mint/Archbang/Angstrom
Posts: 79

Original Poster
Rep: Reputation: 15
THANKS for your help, notwerk!!

Will give this a try and report back later....

Mark
 
Old 05-22-2005, 06:55 AM   #5
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 30
Dear csfalcon,

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.

You can check out more info on S4 at http://www.suspend2.net/
 
Old 05-23-2005, 11:17 AM   #6
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
Hi netwerk,

What do you mean by "try VTing and suspending there"? What does VTing mean? Thanks alot for your help.
 
Old 05-24-2005, 06:24 AM   #7
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 30
You have a number of Virtual Terminals that you can switch to by hitting Ctrl+Alt+[F1-F6]
To get back to the GUI hit Ctrl+Alt+F7
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WiFi Setup on Fujitsu P1120 Subnotebook? ArchiMark Linux - Wireless Networking 13 05-18-2005 05:24 PM
Using Built-in WiFi on Fujitsu P1120 ArchiMark Debian 2 05-16-2005 03:41 PM
How do I setup wireless on a Fujitsu Lifebook S6120 joffa Debian 3 03-21-2005 10:28 AM
Fujitsu P1120 Slackware Install No CD hotplainrice Slackware 12 03-06-2004 09:15 PM
fujitsu c1020 fedora modem setup wizzboy Fedora 0 02-24-2004 04:57 PM


All times are GMT -5. The time now is 11:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration