chmod +x /home/rpi/script/mumbleclient.shSo far the script works if executed in normal screen GUI. And there is no user or password required to put in on the raspberry pi for logging in. Script:
#!/bin/bash sleep 30 mumble mumble://ClientName:ServerPassword:[email protected]:XXXXX/LAN/rpi/YIn the chron I have this:
@reboot lxterminal -e "/home/rpi/script/mumbleclient.sh"I get no terminal at startup that could run it with this chron setup. ------------------------------------------------------------------- Modified: Also I tried this: Did chmod +x on the sh file. Script now:
lxterminal -e mumble mumble://ClientName:ServerPassword:[email protected]:XXXXX/LAN/rpi/YThe script works there when runned with clicking it in the file browser GUI. I did not added any waiting there. Chron:
@reboot sh /home/rpi/script/mumbleclient1.shMy issue is with how to setup Chron! The terminal will not show up and do the task from Chron. There is also a terminal mumble called talkkonnect. But that will take me many hours to setup.
python import time import board import digitalio from lib.kmk.kmk_keyboard import KMKKeyboard from lib.kmk.keys import KC led = digitalio.DigitalInOut(board.LED) b16 = digitalio.DigitalInOut(board.GP16) b17 = digitalio.DigitalInOut(board.GP17) led.direction = digitalio.Direction.OUTPUT keyboard = KMKKeyboard() while True: if b16.value or b17.value: led.value = True keyboard.tap_key(KC.A) print("pressed a") time.sleep(1) else: led.value = FalseI've also tried the example code:
python print("Starting") import board from kmk.kmk_keyboard import KMKKeyboard from kmk.keys import KC from kmk.scanners import DiodeOrientation keyboard = KMKKeyboard() keyboard.col_pins = (board.GP16,) keyboard.row_pins = (board.GP17,) keyboard.diode_orientation = DiodeOrientation.COL2ROW keyboard.keymap = [ [KC.A,] ] if __name__ == '__main__': keyboard.go()When I shorted the pins, in the serial it shows this debug info that it pressed the key and released the key. So in the serial, the output is fine, however when I'm in a text field it just doesnt send the button. The serial shows it works fine but the key is just not being sent? Has anyone encountered the same?
dtoverlay=ov5647,cam0 gpu_mem=128 start_x=1Libcamera commands are working perfectly but the ffmpeg commands are giving errors. I listed my camera devices and /dev/video0 is listed under unicam. Here it is:
bcm2835-codec-decode (platform:bcm2835-codec): /dev/video10 /dev/video11 /dev/video12 /dev/video18 /dev/video31 /dev/media3 bcm2835-isp (platform:bcm2835-isp): /dev/video13 /dev/video14 /dev/video15 /dev/video16 /dev/video20 /dev/video21 /dev/video22 /dev/video23 /dev/media1 /dev/media2 unicam (platform:fe800000.csi): /dev/video0 /dev/media4 rpivid (platform:rpivid): /dev/video19 /dev/media0Here is the ffmpeg error:
[video4linux2,v4l2 @ 0x558c9e5490] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device [video4linux2,v4l2 @ 0x558c9e5490] Time per frame unknown [video4linux2,v4l2 @ 0x558c9e5490] ioctl(VIDIOC_STREAMON): Invalid argument /dev/video0: Invalid argumentBasically, I am trying to use the legacy camera stack to use ffmpeg instead of libcamera but no matter what I do, ffmpeg is giving invalid argument but libcamera is working fine. Ps: I am really a newbie with RPi so really sorry for any mistakes and kindly let me know if any other config details are needed to debug my error.
pi@berry:~/Projects $ uname -a Linux berry 6.6.74+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.74-1+rpt1 (2025-01-27) aarch64 GNU/LinuxI have a newly bought and installed pi5 and a camera module v2 ( https://www.rasppishop.de/Kameramodul-Raspberry-Pi-Kamera-V2 , with new cable that fits pi5) and one for pi5 ( https://www.rasppishop.de/IMX219-Kameramodul-fuer-Raspberry-Pi-5-8MP-MIPI-CSI-Schnittstelle-FOV-120-26185 ) but none of them works for me.. If i excute libcamera-hello I receive the following output:
[0:00:46.401910093][1498] INFO Camera camera_manager.cpp:327 libcamera v0.4.0-53-29156679 Made X/EGL preiew window ERROR. no cameras availableAs i'm very new to linux and pi5 (pi in general) every step would be helpful to debug this. starting from the correct direction of the cable to put in.. If someone needs more information i do my best to provide everything. Any help is appreciated. Thanks in advance đ