Posts by wizardknight
-
-
I have made a little more progress on getting a remote to work.
If I kill everything, and setup RC1 to catch RC-6, I can get real scan codes from the remote.
Codesystemctl stop kodi systemctl stop eventlircd ir-keytable -p rc-6 -s rc1 -t Protocols changed to rc-6 Testing events. Please, press CTRL-C to abort. 1514012903.765030: event type EV_MSC(0x04): scancode = 0x800f0421 1514012903.765030: event type EV_SYN(0x00). 1514012903.924995: event type EV_MSC(0x04): scancode = 0x800f0421 1514012903.924995: event type EV_SYN(0x00).
Looking around the forums it was suggested that lirc might be blocking the codes, and that I should disable it in LibreELEC Settings → Services and reboot.
It was already disabled. I tried enabling it, rebooting, disabling it, rebooting again. No change.
Getting closer.
-
No I don't know, I was going to correct you on your options, but it wouldn't let me, and I realised that your post was deliberately misspelled.
I'll see if someone higher up the foad chain can help with that.
PS apparently f o o d is banned too.
It must be aliens. They don't want the secret getting out. Homans are f00d!
-
I didn’t test to output the log to the destination disk maybe is getting deleted at the end. Try another location maybe /storage for the log file
I redirected the log to storage, and it worked. A gold star to you.
Codersync -rav --modify-window=300 --hu.man-readable --progress --log-file=/storage/backup/synclog.txt --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ &>/dev/null
Now the question is why can't I write to my external HD as root? That is just all kinds of special.
Can you tell me why hum.an is a censored word? I have to admit I am curious.
Is this place ran by aliens, or powered by the screams of children? That would make sense.
-
I haven't tried yet.
Release rb-leia21 · Raybuntu/LibreELEC.tv · GitHub
New build:
-Caretaker Addon preinstalled. It detects malicious repo's or piracy addons and warns the user about it.
It can be disabled.
-DVB Driver Addons from CvH.
If you need additional Crazy Cat DVB drivers you need to enable the addon:
http://cvh.libreelec.tv/LibreELEC/9.0_Leia/le-addons.mp4
I wish everyone happy holidays and a happy new year.
Thanks for the new version.
I haven't had any luck getting any further with the remote, but I have hit a new snag with rsync.
Are there any known issues with redirects? That might explain my issue with rsync.
I have been trying to use this command, but it doesn't generate any redirect output. It works fine otherwise. Just no txt file I can review.
I use an almost identical command on my dd-wrt router which is acting as a file server for me. I have no issue there.
Codersync -rav --modify-window=300 --hu.man-readable --progress --stats --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ > /var/media/8TB_WD2/synclog.txt
Ignore the period in the word hu.man above. For some reason hu man is a censored word on this forum.
I have tried a few other options that I documented in this other thread, but so far no luck getting redirected output or log files created.
Help with output redirect please.
Update:
Figured out that I couldn't write a log file or redirect to the external hard drive. If it was sent to /storage/backup it works.
Does anyone know why I can't write the log file to my external hard drive?
Any suggestions are welcome.
-
Just tried both suggestions, and there was no log file created.
Suggestion #1
Codersync -rav --modify-window=300 --hu.man-readable --progress --log-file=/var/media/8TB_WD2/synclog.txt --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ &>/dev/null
Suggestion #2Codersync -rav --modify-window=300 --hu.man-readable --progress --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ 2>&1 | tee /var/media/8TB_WD2/synclog.txt
Terminal output:
Code^CLibreELEC:/var/media/8TB_WD2/Media/Movies # rsync -rav --modify-window=300 --hu.man-readable --progress --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ 2>&1 | tee /var/media/8TB_WD2/synclog.txt sending incremental file list deleting synclog.txt ./ Media/Epsoides/Hogans Heroes/Hogans.Heroes.S1.DVDRip/ Media/Epsoides/Hogans Heroes/Hogans.Heroes.S1.DVDRip/Hogans.Heroes.1x32.dvdrip.xvid-BBBear_TMindTV.avi 314.32M 100% 50.49MB/s 0:00:05 (xfr#1, ir-chk=1013/63529)
Second SSH to check for log file:
Code
Display MoreLibreELEC (Raybuntu): rb-leia20 (ROCK64.arm) LibreELEC:~ # ls backup music pictures tvshows lost+found nohup.out screenshots videos LibreELEC:~ # cd .. LibreELEC:/ # ls bin etc lib proc sbin sys usr dev flash media run storage tmp var LibreELEC:/ # cd media/ LibreELEC:/var/media # ls 8TB_WD 8TB_WD2 LibreELEC:/var/media # cd 8TB_WD2 LibreELEC:/var/media/8TB_WD2 # ls Apps Other Bios PhoneStuff Documents Pics Drivers System Volume Information ISOs gamez Kodi tomato_137_7_14_16.cfg Media LibreELEC:/var/media/8TB_WD2 # No log file here :(
Am I missing something, or is the system not working right?
I feel like an idiot. I can't see any reason why all of these would fail to generate some kind of output file.
I did just notice a .fuse_hidden0000f49000000005 file being created when I kick off these commands.
I am assuming that is a temp file for rsync, but it is the only thing at the root of that drive which is new.
It also vanishes when I kill the rsync command.
Thanks for the suggestions.Maybe I need to get out my voodoo chicken bones and grass skirt...
Could be running low on magic smoke.
-
It would be nice to get the output in the terminal and the log file, but I can live with not having it in the terminal.
Thanks for the suggestion, but no luck. The rsync starts, but there is no log file.
I am using almost identical code on my dd-wrt router, and it works there as expected.
-
I have loaded my Rock64 with LibreElec, and I am also using it as my Samba server.
I want to run a sync between the two USB hard drives I have attached to maintain a backup of my media.
I can't seem to get the command quite right. I want to copy the data, and redirect the output to a text file so I can see what it is doing later on.
I do want it to overwrite the old log file.
This is the command I am trying to use:
Codersync -rav --modify-window=300 --homan-readable --progress --stats --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ |& tee /var/media/8TB_WD2/synclog.txt -sh: syntax error: unexpected "&"
I have also tried > but I get no log file output at all.
Codersync -rav --modify-window=300 --homan-readable --progress --stats --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/ > /var/media/8TB_WD2/synclog.txt
If I cut off the redirect, it outputs to bash exactly what I would expect, but I can't get it to output to a log file.
Works with output to bash ->
Codersync -rav --modify-window=300 --homan-readable --progress --stats --force --delete /var/media/8TB_WD/ /var/media/8TB_WD2/
Can someone make a suggestion. I am probably missing something crazy simple, but just can't see it.
PS for some reason the word hu.man is censored here. Please replace the homan with hu.man when reading my code above.
-
-
I have found 1 issue I think.
Looks like there are two 'receivers'
rc0 and rc1.
I have updated my keytable command to include the -s option, and got RC-6 enabled I think.
CodeLibreELEC:~ # ir-keytable -c -s rc1 -w /usr/lib/udev/rc_keymaps/hp_mce Read hp_mce table Old keytable cleared Wrote 64 keycode(s) to driver Protocols changed to rc-6
Code
Display MoreLibreELEC:~ # ir-keytable Found /sys/class/rc/rc0/ (/dev/input/event0) with: Driver cec, table rc-cec Supported protocols: cec Enabled protocols: Name: RC for dw_hdmi bus: 30, vendor/product: 0000:0000, version: 0x0001 Repeat delay = 500 ms, repeat period = 125 ms Found /sys/class/rc/rc1/ (/dev/input/event2) with: Driver gpio-rc-recv, table rc-pine64 Supported protocols: unknown other lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp cec Enabled protocols: lirc rc-6 Name: gpio_ir_recv bus: 25, vendor/product: 0001:0001, version: 0x0100 Repeat delay = 500 ms, repeat period = 125 ms
However when I run the test, I get no response/data.
-
wizardknight I'm not sure the IR sensor is completly supported yet. However I have the same remote so I can play a little bit with it. It should work out of the box with lirc if IR sensor is supported.
Thank you. I would be grateful for any tips you can give me.
The sensor is reporting raw data. The IR driver seems to be running. It looks like it supports RC-6. It looks like RC-6 just can't be enabled.
Let me know if I am just being dense and missing something obvious please.
-
First thank you for making this. I love being able to have Kodi on my Rock64.
I have everything up and working well for watching my media, but I wanted to get an IR remote online.
I am not a complete noob, and I have been trying to follow the wiki.
Still I can't seem to get the IR receiver to use RC-6.
First I tried using the existing HP keymap
CodeLibreELEC:/usr/lib/udev/rc_keymaps # ir-keytable -c -w /usr/lib/udev/rc_keymaps/hp_mce Read hp_mce table Old keytable cleared Wrote 64 keycode(s) to driver Invalid protocols selected Couldn't change the IR protocols
ir-keytable does show a receiver with rc-6 protocols, and I am trying to use the HP MCE remote which is an rc-6 device.
Code
Display MoreLibreELEC:/usr/lib/udev/rc_keymaps # ir-keytable Found /sys/class/rc/rc0/ (/dev/input/event0) with: Driver cec, table rc-cec Supported protocols: cec Enabled protocols: Name: RC for dw_hdmi bus: 30, vendor/product: 0000:0000, version: 0x0001 Repeat delay = 500 ms, repeat period = 125 ms Found /sys/class/rc/rc1/ (/dev/input/event2) with: Driver gpio-rc-recv, table rc-pine64 Supported protocols: unknown other lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp cec Enabled protocols: lirc nec Name: gpio_ir_recv bus: 25, vendor/product: 0001:0001, version: 0x0100 Repeat delay = 500 ms, repeat period = 125 ms
I tried running mode2 to see if the IR was getting any info from the remote, and I did see raw data when I did that.
Code
Display MoreLibreELEC:~ # mode2 Using driver default on device /dev/lirc0 Trying device: /dev/lirc0 Using device: /dev/lirc0 Warning: Running as root. space 16777215 pulse 2625 space 913 pulse 383 space 497 pulse 385 space 499 pulse 385 space 948 pulse 383 space 937 pulse 1296 space 920 pulse 387 space 505 pulse 386 space 507 pulse 385 space 509 pulse 383 space 507 pulse 385 space 508 pulse 384 space 508 pulse 385 space 511 pulse 388 space 500 pulse 386 space 506 pulse 411 space 480 pulse 829 space 504 pulse 409 space 472 pulse 413 space 471 pulse 389 space 946 pulse 385 space 506 pulse 409 space 481 pulse 412 space 483 pulse 384 space 506 pulse 853 space 924 pulse 386 space 510 pulse 383 space 507 pulse 386 space 507 pulse 384 space 506 pulse 387 space 506 pulse 396 space 496 pulse 411 space 480 pulse 411 space 482 pulse 828 space 69285 pulse 2629 space 913 pulse 410 space 470 pulse 388 space 499 pulse 411 space 921 pulse 410 space 911 pulse 1298 space 921 pulse 410 space 479 pulse 412 space 480 pulse 412 space 479 pulse 412 space 482 pulse 411 space 480 pulse 387 space 507 pulse 412 space 480 pulse 412 space 480 pulse 410 space 484 pulse 410 space 481 pulse 854 space 476 pulse 411 space 471 pulse 387 space 499 pulse 410 space 922 pulse 408 space 481 pulse 411 space 481 pulse 412 space 480 pulse 413 space 482 pulse 852 space 924 pulse 412 space 479 pulse 413 space 480 pulse 386 space 507 pulse 410 space 480 pulse 410 space 485 pulse 410 space 480 pulse 416 space 479 pulse 408 space 481 pulse 856
I think I just need to enable rc-6, but the command I am trying doesn't seem to work.
CodeLibreELEC:~ # ir-keytable -p rc-6 -t Invalid protocols selected Couldn't change the IR protocols Testing events. Please, press CTRL-C to abort.
Can anyone give me an suggestion for what I need to do to have a remote working?