[Unofficial] libCEC and Python CEC
- mafredri
- Posts: 371
- youtube meble na wymiar Warszawa
- Joined: Sat Mar 22, 2014 8:41 am
Re: [Unofficial] libCEC and Python CEC
Thanks for the feedback guys, libCEC has now been updated to support both platforms, download here! Python CEC to follow.
Hi, I'm new here. Looking to be active in the community and help with development .
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
-
- Posts: 6
- Joined: Thu Apr 17, 2014 9:02 pm
Re: [Unofficial] libCEC and Python CEC
Looking forward to trying this for my 202-TE as soon as you publish the python-CEC! This is one major flaw that I have found in the NAS so far, that XBMC can't be controlled with my remote. So thanks a lot for your work!
- mafredri
- Posts: 371
- Joined: Sat Mar 22, 2014 8:41 am
Re: [Unofficial] libCEC and Python CEC
Well, I finally got around to packaging upp python cec for i386 also. I was planning on migrating to using the Python interpreter provided by ASUSTOR, but they omitted to include the libpython2.7.so lib so that's impossible for now. I've been waiting for them to update the Python application, but who knows when that will happen.
Anyway, grab it while it's hot!
Anyway, grab it while it's hot!
Hi, I'm new here. Looking to be active in the community and help with development .
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
-
- Posts: 5
- Joined: Sat Jun 21, 2014 1:39 am
Re: [Unofficial] libCEC and Python CEC
Thanks mafredri for your great work.
I installed libCEC - 2.1.4-r1 & Python CEC - 0.2.2-r1 via AppCentral on AS-304T, ADM 2.2.1R863, Kernel 2.6.39
Installation seems successful, files seems to be in place.
Sadly I get this error.
Do you have any idea what that could be?
Thanks in advance.
I installed libCEC - 2.1.4-r1 & Python CEC - 0.2.2-r1 via AppCentral on AS-304T, ADM 2.2.1R863, Kernel 2.6.39
Installation seems successful, files seems to be in place.
Sadly I get this error.
Code: Select all
root@NAS:/volume1/.@root # cec-client --list-devices
/usr/local/bin/cec-client: line 6: cec-client-: not found
Thanks in advance.
- mafredri
- Posts: 371
- Joined: Sat Mar 22, 2014 8:41 am
Re: [Unofficial] libCEC and Python CEC
Hmm, for some reason it seems a symlink hasn't been created by the post-install.sh script, or something related to that.p1erre wrote:Thanks mafredri for your great work.
I installed libCEC - 2.1.4-r1 & Python CEC - 0.2.2-r1 via AppCentral on AS-304T, ADM 2.2.1R863, Kernel 2.6.39
Installation seems successful, files seems to be in place.
Sadly I get this error.
Do you have any idea what that could be?Code: Select all
root@NAS:/volume1/.@root # cec-client --list-devices /usr/local/bin/cec-client: line 6: cec-client-: not found
Thanks in advance.
Would you mind doing:
Code: Select all
ls -la /usr/local/AppCentral/libcec
ls -la /usr/local/AppCentral/libcec/bin
To try and fix this you can try to run the following commands:
Code: Select all
/usr/local/AppCentral/libcec/CONTROL/post-install.sh
chmod +x /usr/local/AppCentral/libcec/bin/cec-client-
Mathias
Hi, I'm new here. Looking to be active in the community and help with development .
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
-
- Posts: 5
- Joined: Sat Jun 21, 2014 1:39 am
Re: [Unofficial] libCEC and Python CEC
Code: Select all
ls -la /usr/local/AppCentral/libcec
Code: Select all
root@NAS:/volume1/.@root # ls -la /usr/local/AppCentral/libcec
total 28
drwx------ 7 root root 4096 Aug 28 21:11 ./
drwxr-xr-x 16 root root 4096 Aug 28 21:29 ../
drwxr-xr-x 2 root root 4096 Aug 28 21:11 CONTROL/
drwxr-xr-x 2 root root 4096 Aug 28 21:11 bin/
lrwxrwxrwx 1 root root 8 Aug 28 21:11 lib -> lib-i686
drwxr-xr-x 2 root root 4096 Jul 17 17:09 lib-i386/
drwxr-xr-x 2 root root 4096 Jul 17 17:09 lib-x86-64/
drwxr-xr-x 4 root root 4096 Aug 28 21:11 modules/
Code: Select all
ls -la /usr/local/AppCentral/libcec/bin
Code: Select all
root@NAS:/volume1/.@root # ls -la /usr/local/AppCentral/libcec/bin
total 160
drwxr-xr-x 2 root root 4096 Aug 28 21:11 ./
drwx------ 7 root root 4096 Aug 28 21:11 ../
-rwxr-xr-x 1 root root 150 Jul 17 17:04 cec-client*
lrwxrwxrwx 1 root root 15 Aug 28 21:11 cec-client- -> cec-client-i686
-rwxr-xr-x 1 root root 71352 Jul 17 17:09 cec-client-i386*
-rwxr-xr-x 1 root root 76464 Jul 17 17:09 cec-client-x86-64*
Code: Select all
/usr/local/AppCentral/libcec/CONTROL/post-install.sh
but
Code: Select all
chmod +x /usr/local/AppCentral/libcec/bin/cec-client-
Code: Select all
root@NAS:/volume1/.@root # chmod +x /usr/local/AppCentral/libcec/bin/cec-client-
chmod: /usr/local/AppCentral/libcec/bin/cec-client-: Too many levels of symbolic links
Code: Select all
root@NAS:/volume1/.@root # cec-client --list-devices
/usr/local/bin/cec-client: line 6: cec-client-: Too many levels of symbolic links
- mafredri
- Posts: 371
- Joined: Sat Mar 22, 2014 8:41 am
Re: [Unofficial] libCEC and Python CEC
Oh, it looks like the Asustor arch variable that is available when installing evaluates to i686 instead of i386 as I thought it would. Sorry for that, I don't have an AS-2 or AS-3 to test on so I didn't encounter this problem.
Also, sorry for taking so long to get back to you, have been occupied the entire weekend. I'll fix this soon!
In the mean time, you can fix this yourself by pasting this in the terminal:
Also, sorry for taking so long to get back to you, have been occupied the entire weekend. I'll fix this soon!
In the mean time, you can fix this yourself by pasting this in the terminal:
Code: Select all
cd /usr/local/AppCentral/libcec && ln -sf lib-i386 lib && cd bin && ln -sf cec-client-i386 cec-client-
Hi, I'm new here. Looking to be active in the community and help with development .
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
-
- Posts: 5
- Joined: Sat Jun 21, 2014 1:39 am
Re: [Unofficial] libCEC and Python CEC
Don't be sorry, I really appreciate all your hard work.
Unfortunately I don't know much about shell, but I think I understand what the problem was.
This one seems to be solved.
Sadly CEC still isn't working
I tried different USB ports, same error.
I bought the adapter(new) and tested it with a win7 machine + samsung f7000.
Do you have any idea what that could be?
Unfortunately I don't know much about shell, but I think I understand what the problem was.
Code: Select all
root@NAS:/volume1/.@root # ls -la /usr/local/AppCentral/libcec/bin
total 160
drwxr-xr-x 2 root root 4096 Sep 1 01:23 ./
drwx------ 7 root root 4096 Sep 1 01:23 ../
-rwxr-xr-x 1 root root 150 Jul 17 17:04 cec-client*
lrwxrwxrwx 1 root root 15 Sep 1 01:23 cec-client- -> cec-client-i386*
-rwxr-xr-x 1 root root 71352 Jul 17 17:09 cec-client-i386*
-rwxr-xr-x 1 root root 76464 Jul 17 17:09 cec-client-x86-64*
Code: Select all
root@NAS:/volume1/.@root # ls -la /usr/local/AppCentral/libcec
total 28
drwx------ 7 root root 4096 Sep 1 01:23 ./
drwxr-xr-x 15 root root 4096 Sep 1 01:22 ../
drwxr-xr-x 2 root root 4096 Sep 1 01:21 CONTROL/
drwxr-xr-x 2 root root 4096 Sep 1 01:23 bin/
lrwxrwxrwx 1 root root 8 Sep 1 01:23 lib -> lib-i386/
drwxr-xr-x 2 root root 4096 Jul 17 17:09 lib-i386/
drwxr-xr-x 2 root root 4096 Jul 17 17:09 lib-x86-64/
drwxr-xr-x 4 root root 4096 Sep 1 01:21 modules/
Sadly CEC still isn't working
Code: Select all
root@NAS:/volume1/.@root # cec-client --list-devices
ERROR: [ 3622] error opening serial port '/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/usb4/4-1': Is a directory
ERROR: [ 3622] could not open a connection (try 1)
ERROR: [ 6440] error opening serial port '/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/usb4/4-1': Is a directory
ERROR: [ 6440] could not open a connection (try 2)
ERROR: [ 8320] error opening serial port '/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/usb4/4-1': Is a directory
ERROR: [ 8320] could not open a connection (try 3)
ERROR: [ 9574] error opening serial port '/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/usb4/4-1': Is a directory
ERROR: [ 9574] could not open a connection (try 4)
Found devices: 1
device: 1
com port: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/usb4/4-1
vendor id: 2548
product id: 1002
firmware version: 65535
I bought the adapter(new) and tested it with a win7 machine + samsung f7000.
Do you have any idea what that could be?
- mafredri
- Posts: 371
- Joined: Sat Mar 22, 2014 8:41 am
Re: [Unofficial] libCEC and Python CEC
Oh yeah, the kernel module is probably not correctly linked either. Didn't think about that one.
That should fix it. The "&&" just combines commands on the shell, so basically all this is doing is creating a new symlink to the correct module and then loading the kernel module.
Hope this finally solves your problem !
Code: Select all
cd /usr/local/AppCentral/libcec/modules && ln -sf i386/cdc-acm.ko cdc-acm.ko && insmod cdc-acm.ko
Hope this finally solves your problem !
Hi, I'm new here. Looking to be active in the community and help with development .
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
- mafredri
- Posts: 371
- Joined: Sat Mar 22, 2014 8:41 am
Re: [Unofficial] libCEC and Python CEC
Just pushed a new release, 2.1.4-r2. You can try it out if you like, should detect the i386 platform properly now .
https://github.com/mafredri/libcec-apkg ... g/2.1.4-r2
https://github.com/mafredri/libcec-apkg ... g/2.1.4-r2
Hi, I'm new here. Looking to be active in the community and help with development .
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)