Hi all!
I recently installed Tuxedo OS with KDE and Wayland. I’m fairly new to Linux and, so far, the distro is great. With one caveat.
As far as power options go, everything works fine EXCEPT for Sleep. I can put the PC to sleep, but when I wake it up, I land on the login screen wallpaper with the login/password fields barely visible, as if frozen around the second frame of a fade-in animation.
Nothing works. The mouse cursor doesn’t move, the keyboard doesn’t do anything. The only way out of this state is to hold the power button until the PC shuts down and then turn it back on again.
I did some digging, but couldn’t find a solution. Some threads mentioned modifying something in systemd, but those were from years ago, so I didn’t want to risk that.
One fairly recent thread had a proposed solution of adding "mem_sleep_default=deep"
to GRUB_CMDLINE_LINUX_DEFAULT
in /etc/default/grub
.
That didn’t work for me, though.
I’d love to fix this, but I’m out of ideas. Any help welcome!
EDIT
Forgot it might be a driver issue, people were complaining about Nvidia gear!
I currently don’t have a dedicated GPU. I only have Ryzen 7 7800X3D running on MSI B650 Gaming Plus WIFI ATX AM5 MoBo.
You could try a tool like LACT and setting your gpu power profile to always highest. Another thing you could check is your BIOS settings, https://www.tomshardware.com/reviews/bios-beginners,1126-8.html or checking if the latest bios is installed https://red.artemislena.eu/r/gigabyte/comments/1b3bffy/gigabye_b650_aorus_elite_ax_rev_10_sleeppower/
Hmm… Wouldn’t I also have sleep problems on Windows if this was a BIOS issue?
I don’t know enough to rule out that windows could overwrite bios.
There’s no Windows, I nuked the drive before installing Tuxedo OS.
In the sense of windows boots and changes values of the bios that aren’t saved between boots. Similar to how fan curves can be changed or GPUs overclocked.
I did some more digging and in System Settings → Screen Locking found an option called “Lock after waking from sleep”. Since the OS was freezing on the lock screen, I disabled that to see what happens.
The OS freezes completely just before the shutdown to sleep - I can see ALL devices get booted out - network, BT, audio, mouse, keyboard - everything gets disconnected and then freeze happens.
I have updated the BIOS to the latest version and since then the freeze happens BEFORE the OS goes to sleep. As in: I click the Sleep button, everything freezes, that’s it, the screens never turn off.
So it doesn’t seem like it’s something that’s happening in BIOS during wake-up/reboot, right?
What’s your hardware? And did you regenerate grub’s config after editing the file you mentioned?
Sorry, forgot to mention hardware! Added in an edit now!
I have a Ryzen 7 7800X3D and no dedicated GPU (yet).
I ran
sudo update-grub
after making the changes. That and rebooting a bunch of times since.Did you try any other distro or Windows on this system to narrow down the issue to Tuxedo OS itself? It could be an issue with your motherboard.
Windows worked flawlessly.
Kubuntu had massive issues with other things, but I didn’t test Sleep (due to those other issues I only had it for a day or two).
Did you nuke your Tuxedo OS install? It would have been better to, at least, have a look at system logs to see if there’s anything there.
What problems exactly did you have with Kubuntu?
Did you nuke your Tuxedo OS install?
No, I’m still running it. Other than Sleep, everything else works mostly fine. Just the regular “linuxiness” here and there that’s either easy to sort out, or easy to ignore.
What problems exactly did you have with Kubuntu?
Wow, that’s a whole list… :D
On my laptop, I had zero touchpad gestures. Once I switched from X11 to Wayland I managed to get Firefox to handle pinch-to-zoom and forward/back, but nothing else and in no other application.
Bluetooth drivers were crap, made my $300 headphones sound like $10 headphones.
I accidentally set the wrong keyboard language during installation, changed it without any issues after signing in… But to this day that previous layout pops up on the login screen. The only advice I found online required quite heavy Terminal “hacking”… and didn’t work anyway.
Updates are all over the place. They’re coming in constantly, practically every day, often requiring a reboot. It also doesn’t install any updates on its own, so even if there are smaller, security updates that don’t require a reboot, you have to manually click through the notification and apply them. There was supposed to be another “hack” that makes it apply updates automatically, but it doesn’t work.
I recently connected my Linux laptop to an external screen. All good, but… The login screen was displayed on both monitors. I clicked the login field on the external screen, started typing and nothing happened. Fiddled with that for a bit before, just out of curiosity, trying again, but this time fully on the laptop screen. Worked like a charm, zero issues.
That was the laptop. Then on my PC, I suddenly realised that I have not application menu (the one with “File”, “View”, “Edit”, etc.). Just gone. Wasn’t able to restore it.
Also, my secondary SSD would not stay mounted. Any time I rebooted, it was just gone - and that was a problem for me because I had my Steam library there and wanted to have Steam auto-starting on logon. That I was able to fix by editing
fstab
, but was still super annoying.The move to Tuxedo OS was very smooth. Almost everything worked out of the box (still had to do the
fstab
bit), the Bluetoot driver is MUCH better, updates are more controlled. It’s just this bloody Sleep feature that doesn’t work. :DHmm, let me clarify some of the challenges you had.
Lack of touchpad gestures is due X11. It simply does not support anything you may be used to from Windows or macOS. X11 is currently regarded as a legacy display system due it’s lack of modern features (such as VR, VRR and HDR) and security issues. Firefox supports your typical Wayland gestures since it is one of the few apps implementing new Linux features properly. On Windows and macOS you are locked down to a particular windowing system, so applications can expect such features being available on every single system reliably. The number of choices Linux presents to its users is also the greatest weakness of it, in my opinion. Wayland is still relatively new in most used distributions and I expect things to get better in the next five years.
Majority of the drivers are baked into the kernel on Linux. Without knowing the version of Kubuntu you were using, it is hard to judge why Tuxedo OS played better with your headphones. I am using Sony WH-1000XM5 on Fedora with kernel 6.13 and works perfectly.
Regarding updates: almost every package on nearly every Linux distro (except the kernel) can be updated without rebooting. It is just that Ubuntu (Kubuntu is just Ubuntu with KDE Plasma desktop) is configured to apply updates at reboot to minimize any breakages. So is Fedora that I am using and I really like it. You can update the system through a terminal if you want to do so without rebooting.
The login issue you encountered is due to SDDM - login manager used by KDE Plasma. KDE is planning to replace it with something they develop themselves.
I don’t really understand this one. Did the toolbar just disappear from all apps? They usually do that when you add a global menu widget to your desktop, but shouldn’t otherwise.
Automatic mounting of drives is done easiest through editing the
/etc/fstab
file in Linux. I am not aware any other methods that are more user-friendly.Unless you have a specific reason for using Tuxedo OS, I would highly recommend Fedora with KDE Plasma desktop environment. Tuxedo OS is still pretty niche and targets Tuxedo’s (the company) own laptops. Fedora has much larger user base so issues like this are solved faster. It also ships with the latest versions of the kernel, so you’ll have less driver issues.
(K)Ubuntu is configured to apply updates at reboot to minimize any breakages
That’s the problem - it never did apply the updates. I even tested that by manually telling it to download them all and then rebooting once they were all ready to install. I had to re-download them all after logging back in.
I also noticed that one account was always getting app updates while OS updates were ONLY showing up for the primary account,
I get how this may be “by design”, but it’s an infuriating design. :D
Did the toolbar just disappear from all apps?
Correct. It was just not there. I was able to add the Global Toolbar widget and get a “Mac-like” experience, or add it as a hamburger button on the titlebar, but that’s it.
Automatic mounting of drives is done easiest through editing the /etc/fstab file in Linux. I am not aware any other methods that are more user-friendly
Which is also extremely bad design, if you ask me. For removable drives - sure, why not. But if it’s a bloody NVMe sitting on the motherboard? Also: there just should be a prompt going “do you want to auto-mount this” the moment the user mounts it through Dolphin for the first time.
Unless you have a specific reason for using Tuxedo OS, I would highly recommend Fedora with KDE Plasma desktop environment
As of right now, I’m having a great time with Tuxedo OS - other than the Sleep function not working, everything else is smooth sailing. I don’t want to use Fedora, because I’m more familiar (if still barely) with the Debian Linux family.
It also ships with the latest versions of the kernel, so you’ll have less driver issues.
Is there an easy way to check the kernel version I’m running vs the latest available?
I moved to Tuxedo from Kubuntu after having MASSIVE problems there, but I honestly can’t remember if I was using the Sleep feature.
I assume your issue is reproducible every time, right? If yes, do so and reboot. Use the following command to obtain logs from the previous boot, where you had the problem:
$ journalctl -r -b -1
Before resuming from sleep, wait for about a minute or so to check for that time gap in the logs to easily find the logs of the resuming process.
You can append
>> file_name.log
to the command above to output logs to a file, in case that makes copy and pasting easier for you.11:48 - Sleep
11:50 - Wake
11:52 - Reboot
Password to the file:
spoiler
helpm.ee.lemm.ee
I noticed something that might be helpful, not sure.
I was fiddling with settings to see if I can do anything about this on my own. Found the “Screen Locking” settings and disabled “Lock after waking from sleep”. Got some interesting results!
Nothing changes when I put the device to sleep, but now, when I wake it up, I can see the desktop, as it was when I issued the sleep command. Everything is frozen and all devices are disconnected - no network, no Bluetooth, no audio, all the “tray” icons are greyed out and/or showing errors.
Thanks.
Unfortunately, you system printed absolutely no logs when waking up.
Though, looking at them, I can see that your BIOS is wildly out-of-date:
mar 30 11:45:37 HostName kernel: Hardware name: Micro-Star International Co., Ltd. MS-7E26/B650 GAMING PLUS WIFI (MS-7E26), BIOS 1.10 05/23/2023
In fact, it is the one it was shipped with from the factory. First and foremost, you should update it to the latest one available from MSI’s website. Latest one is from a week ago.
Also, try your best to undo any changes you made to your system following this post, including the grub config change. It is best to troubleshoot making as little change as possible at every step.
I would try:
- see if you can get logs of the resume process
- suspend from a text VT and see if that changes the behaviour
- boot into single user mode and try suspend from there
- boot an older LTS or a newer test kernel and see if it has the same problem
Sorry, mate, I’m a Linux noob.
I have no clue where to find the logs for this.
No idea what a VT is.
Don’t know how to boot into single user mode…
Fair enough, most of that isn’t something a user should have to worry about.
VT is just Virtual Terminals. You always have one of them active, and in most distros you can switch to others by Ctrl-Alt-F1 through F12. In some distos it’s just Alt-F1.
So if you press Ctrl-Alt-F2 you should be brought to a text login. For crazy historical reasons you may have to either press Ctrl-Alt-F1 or Ctrl-Alt-F7 to get back to your usual graphical session.
Arch docs for example: https://wiki.archlinux.org/title/Linux_console
logs are mostly at 2 places.
kernel logs are read with the
dmesg
command. use the--follow
parameter if you want it to keep printing new messages.
dmesg does not save logs to disk.broader system logs are read with
journalctl
. use-f
for it to keep printing. the journal records kernel messages, but it only shows them when you specifically request it. you can find the param for that inman journalctl
.
the journalctl (journald actually) saves logs to disk. but if you don’t/can’t shut down the system properly, the last few messages will not be there.some system programs log to files in /var/log/, but that’s not relevant for now.
if you switch to a VT as the other user described, you should see a terminal prompt on aback background. log in and run
dmesg --follow > some_file
, some_file should not be something important that already exists in the current directory. switch to another VT, log in, and runsleep
. try to wake up. see if you could have waken up, and if not check the logs you piped to the file, maybe post it here for others to see.also, what did you do after setting the deep sleep kernel param? did you rebuild the grub config, and reboot before trying to sleep with it? that change only gets applied if you do those in that order.
there’s an easier way to test different sleep modes temporarily, let me know if it would be usefulSo, I did a BIOS update, as advised here, and got some interesting results!
The freeze still happens - but it now freezes BEFORE the PC shuts down.
As in: I click the Sleep button, all devices get disconnected (audio, network, BT, input - all of it goes), the OS freezes, but the screens stay on. I cannot switch to a different VT at this point as everything is disconnected.
here is the low-level documentation on sleep on linux, and the ways you can initiate it: https://docs.kernel.org/admin-guide/pm/sleep-states.html#standby
I would try if setting mem_sleep to any of its values and then sleeping fixes the issue. read this file first to know which options are available on your system, and what is the current default.
if none of them works, try to write freeze or standby into thestate
file to see of any of them works, in case your system does not do sleeping by writingmem
into this file.if this is a firmware issue, hopefully one of the ways that don’t involve the firmware could work until a better solution is found.
the Arch Wiki has mostly the same info but with more (or different) details: https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate
it also mentions what are your options if deep sleep (which is real sleep) does not work.
let us know what results you got
It might be due to https://github.com/systemd/systemd/issues/33083.
Try disabling user session freezing when sleeping:
sudo systemctl edit systemd-suspend.service
Add the following to the file:
[Service] Environment="SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false"
Reload systemd:
sudo systemctl daemon-reload
After that, try sleeping and waking again.
Just tried it now. Does it need a reboot first? As in: should I try again?
As long as you ran
systemctl daemon-reload
, you should be able to try sleeping without needing to reboot.Would this part potentially get in the way of the method you suggested?
One fairly recent thread had a proposed solution of adding
"mem_sleep_default=deep"
toGRUB_CMDLINE_LINUX_DEFAULT
in/etc/default/grub
.Should I remove that?
You can leave it.
That exact issue is why I stopped using KDE. I never did figure it out.
@Alaknar Sounds like a bug this developer found and fixed:
https://nyanpasu64.gitlab.io/blog/amdgpu-sleep-wake-hang/Basically the fix should ship with kernel 6.14. I’m on ubuntu 25.04 which runs that kernel, and I haven’t seen it since. I was seeing it every once in awhile.
I’m pretty sure tuxedo support should be able to cover this for you. Its one of the bonuses of buying a Linux laptop.
Do you have a Nvidia GPU?
Sorry, forgot to mention hardware in the OP. I have a Ryzen 7 7800X3D and no dedicated GPU (yet).
so you use the integrated graphics of the ryzen, right? you can check in KDE’s info center, to make sure
Is your root partition encrypted?
Give the output of
lsblk
if you could.alaknar@HostName:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 4K 1 loop /snap/bare/5 loop1 7:1 0 104,2M 1 loop /snap/core/17200 loop2 7:2 0 55,4M 1 loop /snap/core18/2855 loop3 7:3 0 63,7M 1 loop /snap/core20/2496 loop4 7:4 0 73,9M 1 loop /snap/core22/1802 loop5 7:5 0 164,8M 1 loop /snap/gnome-3-28-1804/198 loop6 7:6 0 516M 1 loop /snap/gnome-42-2204/202 loop7 7:7 0 91,7M 1 loop /snap/gtk-common-themes/1535 loop8 7:8 0 10,8M 1 loop /snap/snap-store/1248 loop9 7:9 0 44,4M 1 loop /snap/snapd/23771 nvme1n1 259:0 0 931,5G 0 disk ├─nvme1n1p1 259:1 0 300M 0 part /boot/efi └─nvme1n1p2 259:2 0 931,2G 0 part / nvme0n1 259:3 0 1,8T 0 disk └─nvme0n1p1 259:4 0 1,8T 0 part /media/alaknar/BigStorage
I’m not seeing any swap space, so that could be it. Check this post out.
It could also be that your BIOS settings for suspend/resume aren’t set to something compatible with your existing config as well though, if the above doesn’t work, or you’re not comfortable with that level of interaction, check your BIOS first, then try the above maybe.
Everything worked fine on Windows - wouldn’t BIOS misconfiguration also cause problems there?
Not necessarily. Your OS and config may only support certain sleep states in combination with your motherboard and hardware.
Did you contact TUXEDO Support Centre?
Having the same issue on Intel + AMD GPU.
Arch Linux with newest KDE.
First, update your computer’s BIOS/firmware. If that doesn’t fix it, then try Arch, or Fedora beta. If the problem exists there too, then it’s a kernel issue in general, and it might get fixed in the future. OR, if the computer BIOS is buggy, Linus has been clear that they won’t do workarounds for buggy firmwares. In which case, you’d need a new computer that’s actually compatible with Linux.
Most of the computers out there have buggy firmwares that go around for Windows, but Linus has been adamant that he wouldn’t do workarounds because they bloat the kernel.
Well, I updated the BIOS - no change so far. I guess I’m stuck without Sleep. :/
You are not alone. There are many laptops that don’t work with sleep on Linux. I used to have one of them, a Dell 3150. I simply disabled sleep in bios, and be done with it. I now buy laptops that I know they work 100% with Linux. It’s impossible for Linux to support every hardware in the world, when these are specifically are made for Windows.
I’m curious, did you dig around the BIOS/UEFI to see if there are any ACPI power states that can be disabled?
I had a very similar issue and turning off S3 worked around it. Of course, that meant higher power usage during sleep but it was a compromise over buying new hardware.
I ended up switching to a different distro and now everything seems to be working fine. Tuxedo OS really didn’t like my new graphics card.
What kernel version? I had similar issues on similar hardware. These have gone away in more recent kernels though.
6.11.0-109019-tuxedo.
Not the latest, right? I guess I’ll wait for an update.
No, but I don’t believe I saw the issue until the 6.13.x kernels either
Not really related to the issue. If I understand correctly, your device isn’t bricked, but freezes. A bricked device doesn’t boot anymore, a frozen device is unresponsive. Or am I misunderstanding this?
Yeah, had a brain fart. It’s a freeze.
Came here to say the same thing. Using the term “bricking” in the title had me very confused. It would be catastrophic if this was actually bricking computers.