You are not logged in.

#1 2015-10-18 11:45:52

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

[S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

Hi,
I see a black screen after opening the laptop lid in Debian 8 jessie 'openbox'. It's indeed a Debian Xfce installation with openbox installed on top of that. The problem is there only when the laptop lid is closed, not when the laptop remains idle for sometimes. When the laptop remains idle for sometime, the screen goes black but also comes back to normal when there's any activity in input devices e.g. mouse, keyboard, etc.
Closing lids works well in Xfce; the problem only persists while using openbox. Could anyone suggest me any solution? BTW, I have lightdm installed.
Thanks.

Last edited by tranjeeshan (2015-10-22 14:46:16)


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#2 2015-10-18 11:49:24

damo
....moderator....
Registered: 2015-08-20
Posts: 6,489

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

Have you tried adjusting the display settings?

Menu -> Preferences -> Power Management (xfce4-power-manager-settings) (Or whatever is the equivalent in xfce)

Are you saying that the screen stays black, even after pressing the power button, ie it doesn't resume from Suspend?

EDIT: have you added xfce-power-manager to your Openbox autostart?

Last edited by damo (2015-10-18 11:59:20)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#3 2015-10-18 13:05:10

nore
>2⁹
From: squirrels' nest
Registered: 2015-09-29
Posts: 521

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

tranjeeshan wrote:

It's indeed a Debian Xfce installation with openbox installed on top of that.

More precisely: once you've logged in, is it XFCE-session with Openbox replacing XFWM as window manager, or a standalone Openbox session? If it is Openbox only, add power manager to ~/.config/openbox/autostart like damo suggested. If it is XFCE+Openbox, don't  add anything to autostart.

damo wrote:

xfce4-power-manager-settings

That's it.

Offline

#4 2015-10-18 16:35:29

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

Please post the output of:

systemd-inhibit

“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#5 2015-10-19 05:51:23

ohnonot
...again
Registered: 2015-09-29
Posts: 5,162
Website

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

there's a very similar thread here.


Search youtube without a browser: repo | thread
BL quote proposals to this thread please.
my repos / my repos

Offline

#6 2015-10-19 12:47:39

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

damo wrote:

Have you tried adjusting the display settings?

Menu -> Preferences -> Power Management (xfce4-power-manager-settings) (Or whatever is the equivalent in xfce)

Are you saying that the screen stays black, even after pressing the power button, ie it doesn't resume from Suspend?

EDIT: have you added xfce-power-manager to your Openbox autostart?

I've added xfce4-power-manager in openbox autostart config file. But it didn't change anything. Still seeing a black screen with nothing on it. I get a blue screen though when I press any key.
Any thoughts?


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#7 2015-10-19 12:50:37

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

nore wrote:
tranjeeshan wrote:

It's indeed a Debian Xfce installation with openbox installed on top of that.

More precisely: once you've logged in, is it XFCE-session with Openbox replacing XFWM as window manager, or a standalone Openbox session? If it is Openbox only, add power manager to ~/.config/openbox/autostart like damo suggested. If it is XFCE+Openbox, don't  add anything to autostart.

damo wrote:

xfce4-power-manager-settings

That's it.

I'm not using openbox as an window manager under Xfce replacing xfwm; it's a standalone openbox. Followed @damo's advice. Didn't work for me.


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#8 2015-10-19 12:51:40

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

Head_on_a_Stick wrote:

Please post the output of:

systemd-inhibit

Here it is:

$ systemd-inhibit
     Who: NetworkManager (UID 0/root, PID 593/NetworkManager)
    What: sleep
     Why: NetworkManager needs to turn off networks
    Mode: delay

     Who: xfce4-power-manager (UID 1000/tranjeeshan, PID 1195/xfce4-power-man)
    What: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch
     Why: xfce4-power-manager handles these events
    Mode: block

2 inhibitors listed.

Last edited by tranjeeshan (2015-10-19 13:18:26)


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#9 2015-10-19 13:13:58

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

Here's my openbox autostart config file:

# Launch Xcomppmgr and tint2 with openbox
if which tint2 >/dev/null 2>&1; then
  (sleep 2 && xcompmgr) &
  (sleep 2 && tint2) &
fi

sh ~/.fehbg &
volumeicon &
xfce4-power-manager-settings &

"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#10 2015-10-19 17:45:02

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

tranjeeshan wrote:

I get a blue screen though when I press any key.
Any thoughts?

It's the screen locker -- type in your password and press return.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#11 2015-10-19 18:37:23

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

It's indeed a Debian Xfce installation with openbox installed on top of that.

I'm not using openbox as an window manager under Xfce replacing xfwm; it's a standalone openbox.

Explain what exactly you have. Do you think it is an Openbox with some Xfce apps, or something else? What do you have in xfce4-session.xml? Do you have it in your .config folder?

Offline

#12 2015-10-20 06:39:53

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

ostrolek wrote:

It's indeed a Debian Xfce installation with openbox installed on top of that.

I'm not using openbox as an window manager under Xfce replacing xfwm; it's a standalone openbox.

Explain what exactly you have. Do you think it is an Openbox with some Xfce apps, or something else? What do you have in xfce4-session.xml? Do you have it in your .config folder?

I was using Debian 8 jessie Xfce edition; then I thought of tinkering with openbox. I installed openbox and the next time I logged in, I chose openbox from the drop-down menu in Lightdm. Now I'm using openbox every time I log in.


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#13 2015-10-20 07:21:27

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

Head_on_a_Stick wrote:
tranjeeshan wrote:

I get a blue screen though when I press any key.
Any thoughts?

It's the screen locker -- type in your password and press return.

You're right! The black screen was the screen locker all along. But why it was completely black? Why I couldn't see any prompt or something?
I just typed in my login password and it logs me in. Great! But I need to see the login/lock screen. What's causing this problem?

Last edited by tranjeeshan (2015-10-20 07:22:13)


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#14 2015-10-20 17:45:46

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

tranjeeshan wrote:

why it was completely black? Why I couldn't see any prompt or something?

I think that's normal behaviour (or considered a security feature) for some screenlockers.

Try:

apt search locker

Any installed packages will have "[installed]" in the description.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#15 2015-10-21 04:12:17

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

Head_on_a_Stick wrote:
tranjeeshan wrote:

why it was completely black? Why I couldn't see any prompt or something?

I think that's normal behaviour (or considered a security feature) for some screenlockers.

Try:

apt search locker

Any installed packages will have "[installed]" in the description.

Seemingly, I have xscreensaver installed.

I ran

apt search locker | grep installed

And got this:

suckless-tools/stable,now 40-1 amd64 [installed]
xscreensaver/stable,now 5.30-1+b1 amd64 [installed,automatic]
xscreensaver-data/stable,now 5.30-1+b1 amd64 [installed,automatic]

"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#16 2015-10-21 07:01:19

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

Either remove xscreensaver or disable the screenlock with:

echo "lock: False" >> ~/.xscreensaver

https://wiki.archlinux.org/index.php/XS … g_settings


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#17 2015-10-21 07:20:55

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

Head_on_a_Stick wrote:

Either remove xscreensaver or disable the screenlock with:

echo "lock: False" >> ~/.xscreensaver

https://wiki.archlinux.org/index.php/XS … g_settings

lock is already set to False.
The problem is quite solved though, as I know I type in my password and log into the system as the black screen prompts. But disabling the black screen would be of much help.


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#18 2015-10-21 07:24:30

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

Another problem is, every time I log into the system, I'm prompted with a message that says, "Xfce4 Power Settings Manager is not running. Do you want to launch it now?"
N.B.: I added xfce4-power-settings-manager in my openbox autostart file.


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#19 2015-10-21 07:40:30

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

Offline

#20 2015-10-21 09:39:59

damo
....moderator....
Registered: 2015-08-20
Posts: 6,489

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

tranjeeshan wrote:

Another problem is, every time I log into the system, I'm prompted with a message that says, "Xfce4 Power Settings Manager is not running. Do you want to launch it now?"
N.B.: I added xfce4-power-settings-manager in my openbox autostart file.

Should it be

## Enable power management
xfce4-power-manager &

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#21 2015-10-21 17:54:12

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

damo wrote:
tranjeeshan wrote:

Another problem is, every time I log into the system, I'm prompted with a message that says, "Xfce4 Power Settings Manager is not running. Do you want to launch it now?"
N.B.: I added xfce4-power-settings-manager in my openbox autostart file.

Should it be

## Enable power management
xfce4-power-manager &

Previously I had xfce4-power-manager-settings in the autostart file. What's the difference between these two (xfce4-power-manager and xfce4-power-manager-settings)?


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#22 2015-10-21 18:14:41

damo
....moderator....
Registered: 2015-08-20
Posts: 6,489

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

tranjeeshan wrote:

Previously I had xfce4-power-manager-settings in the autostart file. What's the difference between these two (xfce4-power-manager and xfce4-power-manager-settings)?

Run the commands and see tongue One is the power manager, the other is the gui for the settings.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#23 2015-10-21 18:16:48

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

Settings is settings, not a manager, right?
One is a manager, and the other is the manager's settings.

Last edited by nobody0 (2015-10-21 18:18:09)

Offline

#24 2015-10-22 14:43:51

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

damo wrote:
tranjeeshan wrote:

Previously I had xfce4-power-manager-settings in the autostart file. What's the difference between these two (xfce4-power-manager and xfce4-power-manager-settings)?

Run the commands and see tongue One is the power manager, the other is the gui for the settings.

Got it smile


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#25 2015-10-22 14:45:12

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [S] Black screen after opening laptop lid in Debian 8 jessie 'openbox'

I think I can now mark it solved.


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

Board footer

Powered by FluxBB