Answer the question
In order to leave comments, you need to log in
Irexec how to emit keystrokes?
I made the following config:
begin
prog = irexec
button = KEY_5
repeat = 0
delay = 0
config = mplayer -shuffle /home/pi/Music/*
end
begin
prog = irexec
button = KEY_6
repeat = 0
delay = 0
config = sudo pkill mplayer
end
But closing the program does not work and I can’t find how to change the volume through the remote control, tell me please!
Answer the question
In order to leave comments, you need to log in
I don’t know why it doesn’t close / it’s not clear why sudo / try logging >>
For music, it’s better to use mpd and mpc - full control from the command line, but for video there are other alternatives / in pi omxplayer /
I have a sound through amixer - I’m setting it up, probably in mplayer you need to activate the window and interrupt pressing / and * , but I turned off this mode (#LIRCD_ARGS="--uinput") - it's not convenient for me
begin
prog = irexec
button = KEY_VOLUMEUP
config = /usr/bin/amixer set PCM 1050+ ; /usr/bin/amixer -c 0 set Speaker 10%+ | amixer | grep % | sudo -u pi DISPLAY=:0.0 osd_cat -c red -l 10 -f -misc-*-*-*-*--36-*-*-*-c-*-*-* -o 100 &
end
begin
prog=irexec
button=KEY_VOLUMEDOWN
config = /usr/bin/amixer set PCM 1050- ; /usr/bin/amixer -c 0 set Speaker 10%- | amixer | grep % | sudo -u pi DISPLAY=:0.0 osd_cat -c red -l 10 -f -misc-*-*-*-*--36-*-*-*-c-*-*-* -o 100 &
end
begin
prog=irexec
button=KEY_PLAY
config=mpc pause | sudo -u pi DISPLAY=:0.0 osd_cat -c red -l 10 -f -misc-*-*-*-*--36-*-*-*-c-*-*-* -o 100 &
config = mpc play | sudo -u pi DISPLAY=:0.0 osd_cat -c red -l 10 -f -misc-*-*-*-*--36-*-*-*-c-*-*-* -o 100 &
end
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question