I’ve seen numbers being used a lot in file names, so they represent the order they are executed it?

|
一穂灯花 Milena 🎀 2022-09-13 17:44:52
it seems that my x is running on nvidia
grazzolini 2022-09-13 17:44:56
一穂灯花 Milena 🎀 2022-09-13 17:44:41
how to make my x run on intel?

It’s most likely running on intel

grazzolini 2022-09-13 17:45:11
一穂灯花 Milena 🎀 2022-09-13 17:44:52
it seems that my x is running on nvidia

No, that’s default output when you have optimus setup

一穂灯花 Milena 🎀 2022-09-13 17:45:29
i didn’t setup optimus
grazzolini 2022-09-13 17:46:00
一穂灯花 Milena 🎀 2022-09-13 17:45:29
i didn’t setup optimus

You did when you installed nvidia

. 2022-09-13 19:10:31
ls (hd0 rootparttiion) on grub
output= unknown file system
ZESHANKHALID 2022-09-13 20:00:47
how to connect arch linux with wifi during installation
JF049 2022-09-13 20:04:04
ZESHANKHALID 2022-09-13 20:00:47
how to connect arch linux with wifi during installation

https://wiki.archlinux.org/title/Network_configuration/Wireless#iw

metalsz 2022-09-13 20:15:10
ZESHANKHALID 2022-09-13 20:00:47
how to connect arch linux with wifi during installation
metalsz 2022-09-13 20:17:36
But learn with wiki is better than video
grazzolini 2022-09-13 20:18:17
metalsz 2022-09-13 20:17:36
But learn with wiki is better than video

Then why didn’t you link to the wiki, instead of an yt video?

grazzolini 2022-09-13 20:18:34
Don’t follow random yt videos, and instead follow the documentation.
ZESHANKHALID 2022-09-13 20:18:56
metalsz 2022-09-13 20:17:36
But learn with wiki is better than video

i had used rfkill and connman ctl utility

metalsz 2022-09-13 20:19:59
grazzolini 2022-09-13 20:18:17
Then why didn’t you link to the wiki, instead of an yt video?

👀😬Sorry

Lyroy_TheToad 2022-09-13 22:41:03
Hi, does anyone know why running this line

DISPLAY=:0 xinput disable “pointer:Logitech MX Master 3”

in a hook in /usr/lib/systemd/system-sleep/ locks my pc when going to sleep?
(And by lock I mean that it hangs right before going to sleep and the only thing I can do is an hard shutdown)

grazzolini 2022-09-13 22:42:58
Lyroy_TheToad 2022-09-13 22:41:03
Hi, does anyone know why running this line

DISPLAY=:0 xinput disable “pointer:Logitech MX Master 3”

in a hook in /usr/lib/systemd/system-sleep/ locks my pc when going to sleep?
(And by lock I mean that it hangs right before going to sleep and the only thing I can do is an hard shutdown)

Check your journal. Scripts put on system-sleep need to return, otherwise they will block shutdown or suspend.

Lyroy_TheToad 2022-09-13 22:43:24
And by return you mean?
Lyroy_TheToad 2022-09-13 22:43:36
Do I need an “exit” at the end?
grazzolini 2022-09-13 22:44:03
Lyroy_TheToad 2022-09-13 22:43:36
Do I need an “exit” at the end?

No, whatever commands they run should not hang.

grazzolini 2022-09-13 22:44:59
Lyroy_TheToad 2022-09-13 22:41:03
Hi, does anyone know why running this line

DISPLAY=:0 xinput disable “pointer:Logitech MX Master 3”

in a hook in /usr/lib/systemd/system-sleep/ locks my pc when going to sleep?
(And by lock I mean that it hangs right before going to sleep and the only thing I can do is an hard shutdown)

btw, the folder is /usr/lib/systemd/system-sleep, not “systemd-sleep”

Lyroy_TheToad 2022-09-13 22:45:14
grazzolini 2022-09-13 22:44:03
No, whatever commands they run should not hang.

The command doesn’t hang if I run it from the terminal, it hangs only in the hook

Lyroy_TheToad 2022-09-13 22:45:33
grazzolini 2022-09-13 22:44:59
btw, the folder is /usr/lib/systemd/system-sleep, not “systemd-sleep”

Sorry my typo, the actual folder is correct

grazzolini 2022-09-13 22:46:05
Lyroy_TheToad 2022-09-13 22:45:14
The command doesn’t hang if I run it from the terminal, it hangs only in the hook

The command is ran as root, there’s no DISPLAY running as root, you need to probably use sudo/su to run the command as your user. Then again, I don’t understand why you’re trying to disable your device on sleep.

Lyroy_TheToad 2022-09-13 22:47:12
I don’t want to make the mouse wake up the computer because every time I have to move it to make some space it always turns back on the pc
grazzolini 2022-09-13 22:47:54
Lyroy_TheToad 2022-09-13 22:47:12
I don’t want to make the mouse wake up the computer because every time I have to move it to make some space it always turns back on the pc

Yeah, that’s why I use the mouse power on off button after suspending.

Lyroy_TheToad 2022-09-13 22:48:09
I’m too lazy to do that haha
grazzolini 2022-09-13 22:49:24
Lyroy_TheToad 2022-09-13 22:48:09
I’m too lazy to do that haha

Also, I think that disabling it at xinput level won’t prevent ACPI events coming from the mouse and bringing the system from suspend. you probably will be better doing that with udev

Lyroy_TheToad 2022-09-13 22:50:00
Oh okay, I’ll try looking into it
grazzolini 2022-09-13 22:51:52
Lyroy_TheToad 2022-09-13 22:50:00
Oh okay, I’ll try looking into it

You can simply create a rule like this: https://wiki.archlinux.org/title/Udev#Waking_from_suspend_with_USB_device
but with disabled instead of enabled

Lyroy_TheToad 2022-09-13 22:53:07
Oh nice, that’s prefect! Thanks, I’ll tell you if it works =D
grazzolini 2022-09-13 22:56:25
Lyroy_TheToad 2022-09-13 22:53:07
Oh nice, that’s prefect! Thanks, I’ll tell you if it works =D

Lol, ready rule for you: https://wiki.archlinux.org/title/Power_management/Wakeup_triggers#Event-driven_with_udev

Lyroy_TheToad 2022-09-13 23:05:39
Works amazingly! (Can I name the file how I want or do I have to follow specific rules?)
grazzolini 2022-09-13 23:07:04
Lyroy_TheToad 2022-09-13 23:05:39
Works amazingly! (Can I name the file how I want or do I have to follow specific rules?)

You can name it whatever you want. However, given this touches power wakeup, won’t hurt to put a number in front of it, so the file is picked up lastly, like 99. The only reason I don’t use something like this is because I have a logitech unified receiver, and I want to be able to resume from suspend using my keyboard. that’s why I simply power down my mouse

Lyroy_TheToad 2022-09-13 23:08:48
I’ve seen numbers being used a lot in file names, so they represent the order they are executed it? (or is it just alphabetic order?)
Lyroy_TheToad 2022-09-13 23:11:13
Oh also, if I had a logitech keyboard like you do and I wanted to disable just the mouse, how could I have done it?
|