You are not logged in.

#1 2018-09-18 16:44

jschall
Member
Registered: 2018-09-16
Posts: 51

[SOLVED] Can't turn off computer

I'm running Q4OS with the Trinity Classic menu, alongside Windows 10, having used the Windows installer only a couple of days ago.

When I select Logout/Turn Off Computer from the Menu, the screen goes black for a couple of seconds, then Q4OS restarts.

On the other hand, when I run "shutdown" in Konsole, it shuts down.

Why can't I shut down from the Menu?

Last edited by jschall (2018-09-30 18:13)

Offline

#2 2018-09-19 10:03

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,222
Website

Re: [SOLVED] Can't turn off computer

Unfortunately, we are not able to reproduce the issue. Please post a short hardware specification to check it. You could install the 'inxi' package and post output of 'inxi -F' command, so run a few commands in terminal:
$ sudo apt update
$ sudo apt install inxi
$ inxi -F
and post output here.

Offline

#3 2018-09-19 11:29

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: [SOLVED] Can't turn off computer

I have had this issue in VM's a few times where it logs out instead of shutting down, I will look to see if I still have the VM in question and post info here. If I remember right it was after installing other DE's for testing when I noticed it.

I just booted into the VM in question and noticed when it logs out (instead of shutting down) it looks like the xfce log-in screen rather that the usual Q4OS one, which makes me think the installed DE is over-riding the log-in/out procedure.

I will post inxi output after I update it.

Offline

#4 2018-09-19 11:49

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: [SOLVED] Can't turn off computer

inxi from VM

System:    Host: q4os25r1 Kernel: 4.9.0-8-amd64 x86_64 (64 bit) Desktop: KDE Plasma 3
           Distro: Debian GNU/Linux 9 (stretch)
Machine:   Device: oracle System: innotek product: VirtualBox v: 1.2
           Mobo: Oracle model: VirtualBox v: 1.2 BIOS: innotek v: VirtualBox date: 12/01/2006
CPU:       Dual core Intel Core i3 540 (-MCP-) cache: 4096 KB
           clock speeds: max: 3077 MHz 1: 3077 MHz 2: 3077 MHz
Graphics:  Card: InnoTek Systemberatung VirtualBox Graphics Adapter
           Display Server: X.Org 1.19.2 drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1096x651@59.72hz
           GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits) GLX Version: 3.0 Mesa 13.0.6
Audio:     Card Intel 82801AA AC'97 Audio Controller driver: snd_intel8x0 Sound: ALSA v: k4.9.0-8-amd64
Network:   Card: Intel 82540EM Gigabit Ethernet Controller driver: e1000
           IF: enp0s3 state: up speed: 1000 Mbps duplex: full mac: 08:00:27:90:ef:1f
Drives:    HDD Total Size: 11.8GB (39.7% used)
           ID-1: /dev/sda model: VBOX_HARDDISK size: 11.8GB
Partition: ID-1: / size: 9.8G used: 3.4G (37%) fs: ext4 dev: /dev/sda2
           ID-2: swap-1 size: 1.10GB used: 0.00GB (0%) fs: swap dev: /dev/sda1
Sensors:   None detected - is lm-sensors installed and configured?
Info:      Processes: 131 Uptime: 3 min Memory: 221.4/996.3MB Client: Shell (bash) inxi: 2.3.5

version

2.6.1-n1

I think the most relevant point is likely to be that I no longer get the Q4OS log-in screen at boot-up (or log-out).

Also I noticed that "Turn off computer" and "Restart Computer" both just end the current session (log-out).

Offline

#5 2018-09-19 12:04

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,222
Website

Re: [SOLVED] Can't turn off computer

Yes, we are now aware what the issue is about. It's most likely this one https://sourceforge.net/p/q4os/tickets/75/ , and it's Trinity, quite serious, bug. This bug shows only if display managers other then TDM are used, at least SDDM and LightDM. The shutdown from menu only logout the session, and if autologin is enabled it would restart the session as OP describes. We will report this bug at Trinity devs.

Thanks you both for reporting.

Offline

#6 2018-09-19 13:38

jschall
Member
Registered: 2018-09-16
Posts: 51

Re: [SOLVED] Can't turn off computer

Thanks for the explanation.

I guess I'll just write a shell script...

Offline

#7 2018-09-19 13:54

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,222
Website

Re: [SOLVED] Can't turn off computer

It may be also possible, depending on display manager, shutdown in two steps:
- logout only
- shutdown from the display manager login screen

Offline

#8 2018-09-19 14:34

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: [SOLVED] Can't turn off computer

I have purged xfce from my VM and after reboot only have access to terminal, startx gets me into the desktop but I would now like to add the Q4OS login screen back, I am guessing I might just need to adjust something somewhere to get this but it currently escapes me so any suggestions would be welcome smile

Offline

#9 2018-09-19 14:43

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,222
Website

Re: [SOLVED] Can't turn off computer

@Dai_trying
You only need to reconfigure display manager:
$ sudo dpkg-reconfigure tdm-trinity

Offline

#10 2018-09-19 14:58

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: [SOLVED] Can't turn off computer

as soon as I read this I can remember it being posted in another thread but my searches came up empty, thanks guys it worked and everything is back to normal. I am now wondering if this could be applied to a system before removing all the xfce stuff to get control back to tde... I will try another VM and see if it works. smile

@jschall
could you try running the dpkg-reconfigure command to see if it works on your system?

Offline

#11 2018-09-30 14:03

jschall
Member
Registered: 2018-09-16
Posts: 51

Re: [SOLVED] Can't turn off computer

Dai_trying wrote:

@jschall
could you try running the dpkg-reconfigure command to see if it works on your system?

@Dai_trying:

Sorry I didn't see your request 'til just now.

I'd be glad to try it, but I don't know if it'll mess up my current TDE setup?

Offline

#12 2018-09-30 15:07

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: [SOLVED] Can't turn off computer

It shouldn't affect anything other than the login/out procedures but should solve the issue of not being able to shutdown properly. Although if you have written a script that is working and you are happy with it then you obviously could continue as you are, I just thought it might solve your initial issue. smile

Offline

#13 2018-09-30 18:14

jschall
Member
Registered: 2018-09-16
Posts: 51

Re: [SOLVED] Can't turn off computer

Dai_trying wrote:

I just thought it might solve your initial issue. smile

Yes!

The menu item "Turn off computer" works for me now.

Thanks!

Offline

#14 2018-09-30 23:28

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: [SOLVED] Can't turn off computer

You're welcome smile

Offline

Board footer

Powered by FluxBB