Sleep, unwanted wakeups and ACPI
Posted: 5. Sep 2016, 10:21
Hello
I'm a recently returned Slackware user, after many years with other distros (the last slackware I installed would have been about 8.0) and I'm very much enjoying Salix, it's exactly what I want in an OS.
However, I need to ask for help with a configuration issue, as I can't remember where such things are set.
I have a new laptop, a Toshiba L12C-104, which is a very nice little machine, but with a badly broken UEFI.
Anyway, the issue I'm having is that the laptop randomly wakes from sleep, my best guess is that this is being caused by the wifi/network card, or possibly USB.
So, how do I disable wakeups from these devices? I've got as far as finding /usr/lib/pm-utils/power.d but where are these scripts called from and how do I set them?
Additionally, I'd like to configure the laptop to go back to sleep after a short period if it ever does wake up, it's a passivly cooled machine, so this isn't quite as critical as it would be with spinny fans, but it still gets pretty warm if it wakes while in a case. I've set this in XFCE, but that only works while I'm logged in, can I set this in gdm or xscreensaver?
In short:
1. How can I disable wake on LAN and wake on USB?
2. How do I configure gdm or xscreensaver to suspend the laptop after 15 minutes of inactivity, or shut it down if there is no user logged in?
Thanks
I'm a recently returned Slackware user, after many years with other distros (the last slackware I installed would have been about 8.0) and I'm very much enjoying Salix, it's exactly what I want in an OS.
However, I need to ask for help with a configuration issue, as I can't remember where such things are set.
I have a new laptop, a Toshiba L12C-104, which is a very nice little machine, but with a badly broken UEFI.
Anyway, the issue I'm having is that the laptop randomly wakes from sleep, my best guess is that this is being caused by the wifi/network card, or possibly USB.
So, how do I disable wakeups from these devices? I've got as far as finding /usr/lib/pm-utils/power.d but where are these scripts called from and how do I set them?
Additionally, I'd like to configure the laptop to go back to sleep after a short period if it ever does wake up, it's a passivly cooled machine, so this isn't quite as critical as it would be with spinny fans, but it still gets pretty warm if it wakes while in a case. I've set this in XFCE, but that only works while I'm logged in, can I set this in gdm or xscreensaver?
In short:
1. How can I disable wake on LAN and wake on USB?
2. How do I configure gdm or xscreensaver to suspend the laptop after 15 minutes of inactivity, or shut it down if there is no user logged in?
Thanks