I did not really remember when this issue started, but it is around the time I upgraded system from 13.1 to 13.2. Now it is like, when I close the lid, it suspends after some seconds, and it resumes normally. However after resuming, it automatically suspends within 20 seconds and rebooting is the only way to stop this behavior. This behavior only happens after the second attempt of a suspend-resume pair.
I tried to run pm-suspend and it was just ok except that I do not need to type the password when resuming. So I guess there may be something wrong with the lid switch. I tried to print the lid state every 1 second, but when i close the lid and open again, causing or not causing the suspension, the state never changed. I temporarily disabled HandleLidSwitch in login.conf, so now I should manually run the pm-suspend to suspend the system. But I guess there should be another way, because the lid switch runs just fine under windows.
PS. how to run a bash script requiring root without typing the password? I wrote a bash script to run pm-suspend and used chown root and chmod 4755 on it. Now its owner is root and permission is rws. Isn’t this script supposed to be run as root now? it still says This utility may only be run by the root user. and if I add sudo before pm-suspend, it asks for password.
On Fri, 04 Sep 2015 21:16:01 +0000, delta67 wrote:
> I did not really remember when this issue started, but it is around the
> time I upgraded system from 13.1 to 13.2. Now it is like, when I close
> the lid, it suspends after some seconds, and it resumes normally.
> However after resuming, it automatically suspends within 20 seconds and
> rebooting is the only way to stop this behavior. This behavior only
> happens after the second attempt of a suspend-resume pair.
>
> I tried to run pm-suspend and it was just ok except that I do not need
> to type the password when resuming. So I guess there may be something
> wrong with the lid switch. I tried to print the lid state every 1
> second, but when i close the lid and open again, causing or not causing
> the suspension, the state never changed. I temporarily disabled
> HandleLidSwitch in login.conf, so now I should manually run the
> pm-suspend to suspend the system. But I guess there should be another
> way, because the lid switch runs just fine under windows.
>
> PS. how to run a bash script requiring root without typing the password?
> I wrote a bash script to run pm-suspend and used chown root and chmod
> 4755 on it. Now its owner is root and permission is rws. Isn’t this
> script supposed to be run as root now? it still says This utility may
> only be run by the root user. and if I add sudo before pm-suspend, it
> asks for password.
I probably can’t help you, but you might provide some information about
the laptop itself - make and model might be useful. Power management
varies widely between systems.
Thank you for replying. I am not sure what information I should give so I just give a quick view of it. My laptop is HASEE UI45 D2 (I found it stopped production now). Intel Core i5-3317U(1.7GHz/L3 3M) CPU. Has one 64G SSD and a 500G HHD. /boot is on SSD and other parts are on 500G disk. Memory bar is DDR3 8G. SWAP partition only has 4G (at first the laptop used a 4G memory bar and I bought a 8G to replace the old one. But anyway I did not have this issue before the upgrade.). AR9485 wireless network adapter. Should I give some other information?
On Sat, 05 Sep 2015 00:46:01 +0000, delta67 wrote:
> Thank you for replying. I am not sure what information I should give so
> I just give a quick view of it. My laptop is HASEE UI45 D2 (I found it
> stopped production now). Intel Core i5-3317U(1.7GHz/L3 3M) CPU. Has one
> 64G SSD and a 500G HHD. /boot is on SSD and other parts are on 500G
> disk. Memory bar is DDR3 8G. SWAP partition only has 4G (at first the
> laptop used a 4G memory bar and I bought a 8G to replace the old one.
> But anyway I did not have this issue before the upgrade.). AR9485
> wireless network adapter. Should I give some other information?
That’s probably a good start - hopefully that will give someone who has
an idea what it might be a place to start.