Spyke

Posts

Dolphin's video thumbnail preview - what is it called?

Dolphin generates previews for video files through ffmpegthumbnailer; but it also generates a few sequence images from the video when the mouse is hovered over it

what is this feature called?

I want to troubleshoot why some video files are getting the thumbnails generated, but not the sequence of images, and have found it quite diifcult finding something specific to this feature - all sorts of problems solved seem to be related to the thumbnail system itself, not the sequence of images

View original on lemmy.world
8

Brightness resetting to 100% after powerdevil turns the screen off

title

before 6.3, powerdevil randomly did not answer to increase/decrease brightness after comming back fromm a screen off, and I got it fixed by running systemctl --user restart plasma-powerdevil.service

however now I get a somewhat different problem, the screen is always back at 100% brightness after a dimming and then screen off, although powerdevil is still responsive to increase/decrease brightness shortcut

it's not a laptop, and therefore there is only one power setting running on - AC - via DP

Has anyone else experienced this ?

View original on lemmy.world
8

Is it possible to run a script when a specific window is focused?

I want to change brightness based on which window is running, if its an IDE in dark mode increase, if it is a browser window decrease. The command itself is fairly easy to run even on wayland

qdbus local.org_kde_powerdevil /org/kde/Solid/PowerManagement/Actions/BrightnessControl setBrightness 5000   
qdbus local.org_kde_powerdevil /org/kde/Solid/PowerManagement/Actions/BrightnessControl setBrightness 10000   

how can I do it on a per app/window basis?

View original on lemmy.world
18

Using RDP from Linux to Windows via Android and VPN

Ok I know this sounds crazy but it's all about Linux and iptables all the way

I'm using a rooted android phone as a VPN router to keep confidential traffic separated between networks

A and B are in the same network, B provides a separate network for C

Device A: Linux ip 192.168.15.32 wlan0 Device B: rooted Android phone with Termux and VPN Hotspot wlan0 ip 192.168.15.21 wlan1 ip 192.168.38.173

Device C: Windows 10 with RDP wlan1 ip 192.168.15.176

I've tried the following

A: sudo ip route add 192.168.38.0/24 via 192.168.15.21 dev enp1s0

B: Termux, su: sysctl -w net.ipv4.ip_forward=1


iptables -t nat -A POSTROUTING -s 192.168.38.0/24 -o wlan0 -j MASQUERADE
iptables -A FORWARD -i wlan0 -o wlan1 -s 192.168.15.0/24 -d 192.168.38.0/24 -j ACCEPT
iptables -A FORWARD -i wlan1 -o wlan0 -s 192.168.38.0/24 -d 192.168.15.0/24 -j ACCEPT

C: default route via 192.168.38.173 metric 1

C is solely seeing the internet from B's VPN, and can even access wlan0's router, meaning it has access to its internal network. C can ping B, B can ping C

B can ping A and C

A can ping B, but not C, which also means no RDP access

What am I missing ?

View original on lemmy.world
18

AMD + Wayland - sometimes Firefox gets on top of all other windows, specially XWayland, and only killing kwin_wayland_r fixes it

Pretty much the title. I have been trying to pinpoint what's causing it and the proper logs, but the only thing in common so far in all times it has happened is firefox and another xwayland application are present.

logs show several errors, including this one - but how could I file a bug report, if I don't know how to reproduce it ?

Aug 15 17:09:37 hostname konsole[3721]: The cached device pixel ratio value was stale on window update. Please file a QTBUG which explains how to reproduce.

View original on lemmy.world
16

Alsa multimedia inside namespace

I have created a network namespace to separate connections through a VPN, and it runs as the same user account as I use for everything else; however, it is not able to play music/use microphone

inside the namespace:


aplay -l  
card 2: Generic_1 [HD-Audio Generic], device 0: ALCS1200A Analog [ALCS1200A Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 1: ALCS1200A Digital [ALCS1200A Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0  


arecord -l

card 2: Generic_1 [HD-Audio Generic], device 0: ALCS1200A Analog [ALCS1200A Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 2: ALCS1200A Alt Analog [ALCS1200A Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0 

I also tried running as another user, but the effect is the same, which is why for simplicity I resorted to using the same user that can play/record normally

what should I look for in configuring it ?

View original on lemmy.world
13

What PCI cards do you use ?

I have 2x PCIe X16 and 1x PCIe 1x slots that are not being used. Given that Linux has extensive hardware support, there are probably users with interesting PCI card usages

Aside from traditional usages like network/wireless/bluetooth/sound that can easily be used as USB (or built in advanced sound support in the MOBO), what are your use cases with PCIe?

View original on lemmy.world
27

SVP + MPV + Wayland

I was wondering if anyone else has had luck configuring SVP with MPV on wayland (AMD). I followed the archwiki https://wiki.archlinux.org/title/Mpv

This is ~/.config/mpv/mpv.conf

autofit-larger=100%x100%
hwdec=auto-copy
profile=svp
vf=format=fmt=yuv420p

[svp]
input-ipc-server=/tmp/mpvsocket     # Receives input from SVP
hr-seek-framedrop=no                # Fixes audio desync
watch-later-options-remove=vf       # Do not remember SVP's video filters
no-resume-playback

When SVP takes control of the video it pauses and never gets playing again

mpv stdout shows (pause) for a single sec, then proceeds normally, but the video stays frozen

[autoconvert] Converting nv12 -> yuv420p
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu] 3840x2160 yuv420p

SVP has no option to control the video at all; it just says "playing whatever at 60fps"

View original on lemmy.world
13

Display refresh rate reverts back to 144hz after turning off the display

Through amdgpu_top several modes are available, with [email protected] being the preferred

however after turning on/off the display, it reverts to 144hz

how can I make 160hz the default ? kde settings shows "A new output has been added. Settings have been reloaded" when this happens; and the previous 160hz is saved "for any display arrangement"

radeon vega cezanne wayland kde

View original on lemmy.world
41

Left clicking an open program in task manager is opening another instance of it

I'm getting a bug where left clicking a program open in the task manager triggers opening another instance of the same program instead of raising/focusing in the already opened window. This didn't happen using X11. It's not the behavior configured for the left click; a recently started session works fine. The only way for it to go away without restarting is entering Plasma's edit mode and exiting it - then task manager behaves ok for a while. How can I trace what causes this ? I tried checking journalctl for criticial errors or logs when I click and this behavior happens but couldn't find anything relevant

Plasma5, wayland, nvidia

View original on lemmy.world
10

Wayland running GUI program as another user

I use https://github.com/slingamn/namespaced-openvpn to have a isolated namespace and VPN connection

On X, these two steps would allow me to run a GUI program in the protected namespace. So I could have .e.g an IDE configuration for my main user/personal projects, and another entirely different instance of the same IDE for work because they use different users

sudo xhost '+si:localuser:user'
sudo ip netns exec protected sudo -u user -i

On Wayland, although the protected shell is created fine, GUI programs don't start. E.g fgor Dolphin

error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Failed to create wl_display (No such file or directory)

I've tried to preserve the env without success:


sudo -E ip netns exec protected sudo -u user -i

It seems that I access to the wayland socket is a must for this to work

This discussion has a nuke option - giving 777 access to the dir where the wayland socket is, and another less permissive approach adding the users to a group and giving access to a new location where the wayland socket is created

https://stackoverflow.com/questions/41736528/linux-wayland-display-multiple-user

Is this second approach secure? If not, which other steps could I take to achieve what I did in X?

View original on lemmy.world
23