perishthethought

joined 1 year ago
[–] perishthethought@lemm.ee 5 points 8 months ago (1 children)

Me too! For now, check out Simple Tab Groups extension.

[–] perishthethought@lemm.ee 2 points 8 months ago

Soooooooooo... thank you so much. I finally had time for trying out solutions here and your link to askubuntu helped me solve this. Specifically, the answer from Ali Hoza is what I tried first and it seems to work very well. I am copying that answer here for anyone else at Lemmy to try.


The above solution (https://askubuntu.com/a/265389/1467620) works, but it is crude and, also it disables the keyboard wake, which is actually useful.

A more granular alternative can be this: First, we start by enumerating the USB devices connected to the system:

lsusb | sort

from here, it’s pretty obvious which one is the mouse:

Bus 002 Device 006: ID 046d:c52b Logitech, Inc. Unifying Receiver

then we proceed with finding where the devices are mapped to:

grep enabled /sys/bus/usb/devices/*/power/wakeup

/sys/bus/usb/devices/2-1.2.6/power/wakeup:enabled /sys/bus/usb/devices/2-1.2.7/power/wakeup:enabled

Finally, to figure out which is which, we use:

dmesg | grep Logitech | grep -o -P "usb.+?\s"

usb 2-1.2.7:

at which point it’s pretty obvious which one needs to be disabled:

sudo sh -c "echo 'disabled' > /sys/bus/usb/devices/2-1.2.7/power/wakeup"

note: every time you need to echo as superuser, sh -c is necessary, or the system will not allow redirecting to a priviliged file.

Then it’s just a matter of suspending the system and verifying that, while the mouse does not wake it, the keyboard will.

this does not survive a system reboot, so either you need to re-run the last command, or add it to your .bashrc or .zshrc.

This is something that has been annoying me on Ubuntu since when I installed 16.04, and probably there forever, I cannot understand why Canonical wouldn’t add this in the System Settings.

Source: https://codetrips.com/2020/03/18/ubuntu-disable-mouse-wake-from-suspend/

[–] perishthethought@lemm.ee 1 points 8 months ago

Yay nerds!

Ftfy

[–] perishthethought@lemm.ee 1 points 8 months ago

Yah, that's a shame. I thought it was great.

But then again, after a month, I realized I didn't really need this software and uninstalled it.

But thanks for the link to the fork!

[–] perishthethought@lemm.ee 1 points 8 months ago (1 children)
[–] perishthethought@lemm.ee 2 points 8 months ago (1 children)

Oh nice - thanks, will check it out.

[–] perishthethought@lemm.ee 2 points 8 months ago

Oh snap! I AM using kdeconnect but never thought of that. I'll check that out, thanks!

[–] perishthethought@lemm.ee 2 points 8 months ago* (last edited 8 months ago) (7 children)

Ok, let's compare notes - I have nvidia, using the nvidia provided driver, asus m'board, amd ryzen 5 CPU. I run with KDE on X11.

I have a bluetooth dongle I use for my headset too and right, sometimes it seems to help to remove that before sleeping.

I wish there was a "I really want you to go to sleep no matter what option", like to have the PC ignore whatever signals it's getting that make it wake up again.

Not relevant, but I have this same problem on a Windows laptop rn too. I have no idea why that's happening either.

[–] perishthethought@lemm.ee 7 points 8 months ago

As an author of a book published by Packt, I understand this but still wish people could tone that down from, "none of the books..." to "some" but yeah. Mine has 5 stars in amazon and I know there are many which are well reviewed or have been very useful for my own learning.

[–] perishthethought@lemm.ee 1 points 8 months ago

All good. Just making sure that's clear. Cheers,

[–] perishthethought@lemm.ee 3 points 8 months ago (2 children)

Whoa - Hey, I am not asserting anything here about the vlogger. I just don't like the image they used for the video. I don't know anything about this channel.

[–] perishthethought@lemm.ee 3 points 8 months ago

Just installed that extension in Firefox and instantly recognized the difference. Thanks so much!

view more: ‹ prev next ›