Skip to content

u/cj360

In this archive from Jul 2014 to Jun 2021

18
posts
103
comments
3
media
299
score
drwx------ 4 andrew android-sdk 4096 Jun  7 17:07 /home/andrew/.gnupg

Edit- I removed both /etc/pacman.d/gnupg, ~/.gnupg/ and reset my keys per the wiki and that fixed it.

1 points

Arch not being stable feels like its been a meme for a while. As far as an update breaking my system I think it happened once. When nvidia modules weren't update to match a new kernel version. Rebuilt modules & reboot, problem solved.

1 points

It needs root permission, which seemingly systemctl does have (I think).

$ nvidia-smi -pl 125.00
Failed to set power management limit for GPU 00000000:0A:00.0: Insufficient Permissions
Terminating early due to previous errors.
$ sudo nvidia-smi -pl 125.00 
Power limit for GPU 00000000:0A:00.0 was set to 125.00 W from 151.00 W.

Warning: persistence mode is disabled on device 00000000:0A:00.0. See the Known Issues section of the nvidia-smi(1) man page for more information. Run with [--help | -h] switch to get more information on how to enable persistence mode.
All done.
1 points

I think xrandr just doesnt display a mode @ 144hz even though your should support it. Using displayport here so idk about hdmi but you can use xrandr to set a custom mode, if you set one that is unsupported logging out should reset it to your current working one.

Just for reference here's how i set my refresh rate for my nvidia gpu.

1 points

It works!

dev-sony_ds4.device - /dev/sony_ds4

   Follow: unit currently follows state of sys-devices-pci0000:00-0000:00:07.1-0000:0b:00.3-usb3-3\x2d4-3\x2d4:1.0-0003:054C:05C4.0007-hidraw-hidraw4.device
     Loaded: loaded
     Active: active (plugged) since Fri 2020-01-24 20:38:09 EST; 3s ago
     Device: /sys/devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb3/3-4/3-4:1.0/0003:054C:05C4.0007/hidraw/hidraw4

$ pgrep -a ds4drv
2160 /usr/bin/python /usr/bin/ds4drv --hidraw --udp

$ cat .config/ds4.sh

#!/usr/bin/env bash
ds4drv --hidraw --udp --led 2cf000

using a fork of ds4drv with the extra udp setting.

$ cat /etc/udev/rules.d/50-ds4drv.rules

KERNEL=="uinput", MODE="0666"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", SYMLINK+="sony_ds4", TAG+="systemd", MODE="0666"
#KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", ATTRS{address}=="40:1B:5F:85:BC:42", SYMLINK+="sony_ds4", TAG+="systemd", MODE="0666"
#KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="0005:054C:05C4.*", MODE="0666"
#KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", MODE="0666"
#KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="0005:054C:09CC.*", MODE="0666"

Tried using the bt mac address to also run this when wireless, but it just breaks the recognition and doesn't match for bt or usb with the extra ATTRS{address} line.

$ cat /etc/systemd/system/sony_ds4.service

[Unit]
BindsTo=dev-sony_ds4.device
After=dev-sony_ds4.device

[Install]
WantedBy=dev-sony_ds4.device

[Service]
Type=oneshot

ExecStart=/home/andrew/.config/ds4.sh

Thanks again for the help!

1 points

No I haven't sounds great but I am still confused after read the wiki bit on systemd units.

I made /etc/systemd/system/sony_ds4.service

[Unit]
BindsTo=dev-sony_ds4.device
After=dev-sony_ds4.device

[Install]
WantedBy=dev-sony_ds4.device

[Service]
Type=oneshot
User=andrew

ExecStart=/home/andrew/ds4.sh

Edited /etc/udev/rules.d/50-ds4drv.rules

KERNEL=="uinput", MODE="0666"
#KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", MODE="0666"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", ATTRS{address}=="40:1b:5f:85:bc:42", SYMLINK+="sony_ds4", TAG+="systemd", MODE="0666"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="0005:054C:05C4.*", MODE="0666"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", MODE="0666"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="0005:054C:09CC.*", MODE="0666"

Testing:

sudo systemctl start /etc/systemd/system/sony_ds4.service
Failed to start etc-systemd-system-sony_ds4.service.mount: Unit etc-systemd-system-sony_ds4.service.mount not found.

The User= would be me wanting to eventually have this run as a non root user, but I'm far from fully grasping this yet. Is systemd looking for the wrong mount just because my bindsto= and after= are wrong?

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.