You are not logged in.
I have a desktop computer and whenever my screen locks from inactivity my lan also disconnects. How can I keep the wired connection?
bl-Hydrogen-rc2-amd64
$ lsb_release -a
No LSB modules are available.
Distributor ID: BunsenLabs
Description: BunsenLabs GNU/Linux 8.3 (Hydrogen)
Release: 8.3
Codename: bunsen-hydrogen
I chose the option for *not a laptop* in the bl-welcome during first boot.
$ cat ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-power-manager" version="1.0">
<property name="xfce4-power-manager" type="empty">
<property name="power-button-action" type="empty"/>
<property name="lid-action-on-ac" type="uint" value="1"/>
<property name="lid-action-on-battery" type="uint" value="1"/>
<property name="critical-power-action" type="uint" value="1"/>
<property name="show-tray-icon" type="uint" value="1"/>
<property name="brightness-switch-restore-on-exit" type="int" value="1"/>
<property name="brightness-switch" type="int" value="1"/>
<property name="blank-on-ac" type="int" value="10"/>
<property name="dpms-on-ac-sleep" type="uint" value="0"/>
<property name="handle-brightness-keys" type="bool" value="false"/>
<property name="dpms-on-ac-off" type="uint" value="15"/>
<property name="brightness-level-on-ac" type="uint" value="80"/>
</property>
</channel>
** Note: I have updated the title to reflect the issue at hand a little better. (2016.03.02)
Last edited by nicholasalipaz (2016-03-02 17:07:06)
Offline
If your computer is going to sleep and you are using NetworkManager, then that is it's expected behavior during sleep (ie systemd will stop the NetworkManager service, then restart it once it comes out of sleep.) You could try disabling suspend and see if that helps.
Offline
I am fairly sure I have the suspend option for inactivity set to "never". Am I missing something?
Offline
Try this and see if it works:
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
To enable it back do this:
sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
According to what I am seeing, your machine should not be going to sleep. One other option, if you do not require screen locking would be to disable light-locker, which would prevent the machine from kicking back to lightdm login.
Offline
so I did try the first command and that didn't help. I was able to confirm this morning. I do however need the screen locking so that is not really an option.
Offline
Try adding the ethernet connection to /etc/network/interfaces and see if that keeps it up (so to speak).
These lines should be all you need:
auto eth0
iface eth0 inet dhcp
If your interface is not called "eth0", change the name to match yours (use `ip l` to list all interface names).
See interfaces(5)
Offline
Head_on_a_Stick, thanks. I have added that and commented out the prior bit:
$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
#auto lo
#iface lo inet loopback
auto eth0
iface eth0 inet dhcp
I will see how it goes and report back later.
Offline
commented out the prior bit
Don't do that!
You need the loopback interface
Offline
nicholasalipaz wrote:commented out the prior bit
Don't do that!
You need the loopback interface
Thanks! Glad I didn't restart my network connection yet...
Offline
So I have been testing this and it still seems it isn't solved. After more thought, it seems my computer is indeed going to sleep when the screen timeout of 10 minutes occurs. However my settings are set that that should not be the case.
Offline
Thta is kind of what I was thinking. Are you on BL RC2 yet? I am thinking that something is up with xfce4-power-manager, most notably the security tab for light-locker is missing. We do offer a backported xfce4-power-manager which might solve this.
Last edited by tknomanzr (2016-03-01 23:20:04)
Offline
I am on RC2 yes.
Offline
I don't see anything in my sources by default:
$ apt-cache policy xfce4-power-manager
xfce4-power-manager:
Installed: 1.4.1-1
Candidate: 1.4.1-1
Version table:
*** 1.4.1-1 0
500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
Offline
OK. You probably want the backported version which will be 1.4.4-4
jessie-backports
This is an auxiliary repository containing packages backported from Debian testing and imported from Ubuntu.
Set up /etc/apt/sources.list.d/bunsen-jessie-backports.list with the following contents:
deb http://pkg.bunsenlabs.org/debian jessie-backports main
The backports repo’s packages will have a pin priority of 100, so regular jessie packages will continue to take precedence until you explicitly install a backported package.
To upgrade a package to its backports version, target the backports distribution as follows:
sudo apt-get -t jessie-backports install ${PACKAGE_NAME}
Subsequent package upgrades will be installed from the backports repo or the regular repository, whichever package version is higher.
Offline
Weird, so as you saw in my prior
$ apt-cache policy xfce4-power-manager
there is not currently jessie-backports listed or other candidate packages.
looking at my sources:
$ cat /etc/apt/sources.list.d/debian-jessie-backports.list
# added by bl-welcome
# Debian backports
deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
It seems as though I have jessie-backports already added. So in hopes of fixing the issue I ran:
$ sudo apt-get update
...
$ sudo apt-cache policy xfce4-power-manager
xfce4-power-manager:
Installed: 1.4.1-1
Candidate: 1.4.1-1
Version table:
*** 1.4.1-1 0
500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
...meh...
$ sudo apt-get install xfce4-power-manager -t jessie-backports
Reading package lists... Done
Building dependency tree
Reading state information... Done
xfce4-power-manager is already the newest version.
Stranger and stranger...
Offline
OK. I may be ahead of you as I track Sid. I just noticed that they backported it from Stretch and assumed it would be the same version but obviously not. Something is up with it however. I think I would try to purge it, then reinstall the backported version. It should look like this and the above scrot you posted looks way different:
Note: I have screenlocking turned off in this case but that shouldn't matter. Your machine should not be sleeping, accodring to what I saw and I don't believe systemd is intercepting things. However, for the sake of completeness, /etc/systemd/logind.conf should look like this:
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#UserTasksMax=12288
Offline
^^You need the bunsenlabs jessie-backports. @tknomanzr posted the instructions ^ (also available on the BL site https://pkg.bunsenlabs.org/)
The terminology is confusing, I agree, and there is some dev discussion about changing the repo name. But that isn't quite so straightforward atm it seems.
Current version is `1.4.4-4~bpo8+1`
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
Offline
Try adding the ethernet connection to /etc/network/interfaces and see if that keeps it up (so to speak).
These lines should be all you need:auto eth0 iface eth0 inet dhcp
If your interface is not called "eth0", change the name to match yours (use `ip l` to list all interface names).
Thanks! Glad I didn't restart my network connection yet...
i'm pretty sure it is prudent to actually reboot the machine after this change.
Offline
Head_on_a_Stick wrote:Try adding the ethernet connection to /etc/network/interfaces and see if that keeps it up (so to speak).
These lines should be all you need:auto eth0 iface eth0 inet dhcp
If your interface is not called "eth0", change the name to match yours (use `ip l` to list all interface names).
nicholasalipaz wrote:Thanks! Glad I didn't restart my network connection yet...
i'm pretty sure it is prudent to actually reboot the machine after this change.
Sure, but I was only meaning to say I had yet to do so, and I am glad I had not done it yet.
So I installed the latest from bunsenlabs' (didn't notice how the url was on bunsenlabs.org in prior post) jessie-backports repo however I am not getting anything different, my computer sleeps whenever the screen locks.
$ apt-cache policy xfce4-power-manager
xfce4-power-manager:
Installed: 1.4.4-4~bpo8+1
Candidate: 1.4.4-4~bpo8+1
Version table:
*** 1.4.4-4~bpo8+1 0
100 http://pkg.bunsenlabs.org/debian/ jessie-backports/main amd64 Packages
100 /var/lib/dpkg/status
1.4.1-1 0
500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages
Offline
OK. I may be ahead of you as I track Sid. I just noticed that they backported it from Stretch and assumed it would be the same version but obviously not. Something is up with it however. I think I would try to purge it, then reinstall the backported version. It should look like this and the above scrot you posted looks way different:
https://cdn.scrot.moe/images/2016/03/02/2016-03-01-18-29-35_scrot.th.png
...
tknomanzr, can you tell me the version number for xfce4-power-manager that you are running?
Offline