xfce4-power-manager doesn't show in the fluxbox toolbar or work at all (even though it's running as a process) in ubuntu 12.10 unless started with strace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fluxbox |
New
|
Medium
|
Unassigned |
Bug Description
I start xfce4-power-manager from ~/.fluxbox/startup with :
xfce4-power-manager &
This would work fine in fluxbox when I was running ubuntu 12.04. It would show up in the fluxbox toolbar, and would put my laptop to sleep when I would close the lid. After I upgraded to 12.10 xfce4-power-manager no longer worked in that it seemed to be running as a process (ps aux | grep -i xfce4-power-manager showed it), but it would never show up in the toolbar in fluxbox and it wouldn't do anything if I closed the laptop lid. I even tried restarting/
killall xfce4-power-manager && xfce4-power-manager
and although a new process would be started (verified by looking at the before and after pid), it still wouldn't do anything. In my initial effort to strace it to see what it was trying to do on startup and to perhaps determine why it wasn't working, I noticed strangely that if I did run strace -ff with it, it would startup, show up in the fluxbox toolbar, and would send the command to suspend my laptop. I could then ctrl+c out of strace but xfce4-power-manager would keep running, which is good.
I created this wrapper (xfce4-
#!/usr/bin/perl
`killall -9 xfce4-power-
if (!(fork)) {
# child
`strace -ff xfce4-power-
}
else {
# parent
sleep 5;
`killall strace`;
}
I've seen this sort of strange behavior with completely unrelated applications under linux before, where the application doesn't show up unless started with strace. Any idea what's going on?
Hi,
I had the same problem (xfce4- power-manager + fluxbox). On my macbook pro I could control the screen brightness anymore and it was not suspending anymore when I closed the lid.
By coincidence I discovered that running
xfce4-power-manager --no-daemon 2>&1 >$HOME/somefile.log &
does work. So I've put that in my $HOME/. fluxbox/ startup file, logged out/in and now both brightness and suspend works.
btw: '2>&1' streams the standard error to the standard output channel and '>$HOME/ somefile. log' stream those two to that particular file. You can also throw it away ('> /dev/null').