You are not logged in.
Pages: 1
I am trying to set up my computer so when I close my lid, the screenshuts off, when I open my lid, xscreensaver comes up and asks me for a password ... just like I had when I was on Ubuntu. Someone suggested kpowersave.
When I try to install powersave I get:
sudo pacman -S powersave
resolving dependencies... done.
looking for inter-conflicts... done.Targets: cpufrequtils-002-1 vbetool-0.7-1 powersave-0.14.0-4
Total Package Size: 0.45 MB
Proceed with installation? [Y/n]
checking package integrity... done.
cleaning up... done.
(3/3) checking for file conflicts [#####################] 100%
error: could not prepare transaction
error: failed to commit transaction (conflicting files)
powersave: /usr/bin/on_ac_power exists in filesystemerrors occurred, no packages were upgraded.
Any ideas?
Thanks.
Offline
I had this problem too. I solved it renaming the on_ac_power file in /usr/bin directory. I really don't know if it is the best solution, but it worked for me.
Last edited by carrouf (2007-05-21 22:01:31)
Offline
pacman -Syf powersave should also do the trick
Offline
Ah OK that fixed it but I went with another method instead. I modified a lid.sh script I found to do what I wanted (shut backlight off, shut screen off, lock the screen with xscreensaver).
#!/bin/sh
LIDSTATE='/var/log/acpi-lidstate'
user=`who| grep " :0" | awk '{print $1}'`
export XAUTHORITY=/home/$user/.Xauthority
export DISPLAY=:0grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
xscreensaver-command -throttle
xscreensaver-command -lock
xset dpms force off
echo `fgconsole` > $LIDSTATE
else
xscreensaver-command -unthrottle
chvt `cat $LIDSTATE`
fi
Offline
Pages: 1