Go to advanced search

by McLion
Thu Jul 19, 2018 12:04 pm
Forum: Networking and servers
Topic: Citrix Receiver on RPi3 - Issues
Replies: 1
Views: 1361

Re: Citrix Receiver on RPi3 - Issues

An update: I have it basically working now and I can connect to desktops and apps - feels kinda strange to see a WinServer2016 running fluently on the Raspi display :shock: . There were some issues with the certificates that I needed to copy over from FF to the CTX receiver and some settings on Mart...
by McLion
Thu Jul 19, 2018 8:39 am
Forum: Raspbian
Topic: Hook script for USB register and/or eth0 disappear
Replies: 15
Views: 784

Re: Hook script for USB register and/or eth0 disappear

/etc/ is not the place for an executable, be it a helper script. I actually know that ... I've just put it there together with the rules for easy dev/maintenance Did you try running "/etc/udev/rules.d/detach.sh /home/pi/MyScript.sh start"? Yes. The following works: [email protected]:~$ sudo /etc...
by McLion
Wed Jul 18, 2018 11:59 am
Forum: Raspbian
Topic: Hook script for USB register and/or eth0 disappear
Replies: 15
Views: 784

Re: Hook script for USB register and/or eth0 disappear

Installed at.
However, seems I can not use it. MyScript.sh is a bash script and at uses sh to execute. Tried to work around ... to no avail.

Code: Select all

RUN+="/etc/udev/rules.d/detach.sh /home/pi/MyScript.sh start"

Code: Select all

#!/bin/bash
# Filename:     /etc/udev/rules.d/detach.sh
echo "bash [email protected]" | at now

by McLion
Wed Jul 18, 2018 10:58 am
Forum: Raspbian
Topic: Hook script for USB register and/or eth0 disappear
Replies: 15
Views: 784

Re: Hook script for USB register and/or eth0 disappear

.. seems I'm missing 'at' at is pretty old school, it is not available by default on Raspbian. You can "apt-get" it. Or cook you own way of detaching the process properly. I stick with "at now" because it does the job, but there has to be other ways. apt-get tried to install a lot of other things t...
by McLion
Wed Jul 18, 2018 7:44 am
Forum: Raspbian
Topic: Hook script for USB register and/or eth0 disappear
Replies: 15
Views: 784

Re: Hook script for USB register and/or eth0 disappear

Thank you guys.
The version to directly call my script works.
My script needs a few seconds. To be on the safe side I tried the 'detached' solution as well. However, I don't get this to run.

.. seems I'm missing 'at'
by McLion
Tue Jul 17, 2018 3:35 pm
Forum: Raspbian
Topic: Hook script for USB register and/or eth0 disappear
Replies: 15
Views: 784

Re: Hook script for USB register and/or eth0 disappear

epoch1970 wrote:
Tue Jul 17, 2018 12:03 pm
That's usually called a udev rule I think.
Tried to create a rule to catch the register of the eth0 on USB ... no avail so far :(

ACTION=="add", SUBSYSTEM=="usb", ATTRS{idProduct}=="ec00", ATTRS{idVendor}=="0424", RUN+="~/myScript.sh start"

Any hint ?
by McLion
Tue Jul 17, 2018 2:04 pm
Forum: Raspbian
Topic: Hook script for USB register and/or eth0 disappear
Replies: 15
Views: 784

Re: Hook script for USB register and/or eth0 disappear

There are some scripts in "/etc/network/if-down.d" or "/etc/network/if-post-down.d" that might have similar functions to what you require. I tried to use the if-up.d hook. It works upon boot. However, if the interface if disappearing and reappearing (message in my OP) it seems not to trigger this h...
by McLion
Tue Jul 17, 2018 1:50 pm
Forum: Raspbian
Topic: Hook script for USB register and/or eth0 disappear
Replies: 15
Views: 784

Re: Hook script for USB register and/or eth0 disappear

There are some scripts in "/etc/network/if-down.d" or "/etc/network/if-post-down.d" that might have similar functions to what you require. Thanks. Are all scripts in there executed in 'some' order, meaning I can simply add another one or do I have to add to an existing one? I added mine as latest w...
by McLion
Tue Jul 17, 2018 12:57 pm
Forum: Raspbian
Topic: Hook script for USB register and/or eth0 disappear
Replies: 15
Views: 784

Re: Hook script for USB register and/or eth0 disappear

topguy wrote:
Tue Jul 17, 2018 12:38 pm
There are some scripts in "/etc/network/if-down.d" or "/etc/network/if-post-down.d" that might have similar functions to what you require.
Thanks. Are all scripts in there executed in 'some' order, meaning I can simply add another one or do I have to add to an existing one?
by McLion
Tue Jul 17, 2018 12:56 pm
Forum: Raspbian
Topic: Hook script for USB register and/or eth0 disappear
Replies: 15
Views: 784

Re: Hook script for USB register and/or eth0 disappear

epoch1970 wrote:
Tue Jul 17, 2018 12:03 pm
That's usually called a udev rule I think.
Thanks, I'll look up on udev rules.
by McLion
Tue Jul 17, 2018 11:55 am
Forum: Raspbian
Topic: Hook script for USB register and/or eth0 disappear
Replies: 15
Views: 784

Hook script for USB register and/or eth0 disappear

Hi First: Is there a hook script where I can add something to run when the eth0 USB device is registered: [ 3.154574] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, xx:xx:xx:xx:xx:xx Second: Is there a hook script that is run when eth0 disappears? I'...
by McLion
Thu Jul 05, 2018 4:07 pm
Forum: Raspbian
Topic: Tutorial: Compile VLC with HW acceleration - Stretch, RPi 2/3
Replies: 182
Views: 83371

Re: Tutorial: Compile VLC with HW acceleration - Stretch, RPi 2/3

anybody get this to compile on osmc? i'm stuck on dependency issues: Preparing to unpack …/liblirc-dev_0.9.4c-9_armhf.deb … Unpacking liblirc-dev:armhf (0.9.4c-9) … dpkg: error processing archive /var/cache/apt/archives/liblirc-dev_0.9.4c-9_armhf.deb (–unpack): trying to overwrite ‘/usr/include/lir...
by McLion
Thu Jul 05, 2018 2:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Reprogramming the ethernet chip lan9512
Replies: 23
Views: 4674

Re: Reprogramming the ethernet chip lan9512

ethtool shows: [email protected]:~$ ethtool -i eth0 driver: smsc95xx version: 22-Aug-2005 firmware-version: smsc95xx USB 2.0 Ethernet expansion-rom-version: bus-info: usb-3f980000.usb-1.1 supports-statistics: no supports-test: no supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags...
by McLion
Thu Jul 05, 2018 12:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Reprogramming the ethernet chip lan9512
Replies: 23
Views: 4674

Re: Reprogramming the ethernet chip lan9512

I'd like to pick this up again. I need to reprogram the EEPROM attached to the LAN9514. There are two options for this: the ethtool (limited functionality) and the smsc/Microchip supplied cmd9500. So, i downloaded the latest driver package from Microchip to get the cmd9500, built it, and guess what ...
by McLion
Wed Jun 27, 2018 2:28 pm
Forum: Raspbian
Topic: Tutorial: Compile VLC with HW acceleration - Stretch, RPi 2/3
Replies: 182
Views: 83371

Re: Tutorial: Compile VLC with HW acceleration - Stretch, RPi 2/3

I'm getting 3 Display Errors : Failed to change zoom... Failed to set on top... and... Failed to set Fullscreen. These errors are normal since VLC does not feature full options to control the HW-accelerated output in terms of scaling and such. However, what it can do is using full screen by setting...
by McLion
Wed May 23, 2018 1:36 pm
Forum: Troubleshooting
Topic: USB stick slow, only when booted of it
Replies: 0
Views: 113

USB stick slow, only when booted of it

Hi, I have a strange issue. The RPi3 (CM3 light) is running Stretch from uSD card. When I attach an Kingston DataTraveler SE9 32GB USB sticks and quickly measure the read speed with hdparm -t I get about 20MB which is fine - It's about similar to the value of another brand USB memory I have availabl...
by McLion
Thu May 17, 2018 8:52 am
Forum: Networking and servers
Topic: Citrix Receiver on RPi3 - Issues
Replies: 1
Views: 1361

Citrix Receiver on RPi3 - Issues

Hi I'm trying to get Citrix Receiver run on RPi3 with Stretch. I first tried with the Chromium plugin ... to no avail. I then installed the latest Citrix Receiver according to some good sources I found in the web and linked to in this forum as well. So far so good, connection to the Store Front work...
by McLion
Wed May 16, 2018 7:25 am
Forum: Raspbian
Topic: Tutorial: Compile VLC with HW acceleration - Stretch, RPi 2/3
Replies: 182
Views: 83371

Re: Tutorial: Compile VLC with HW acceleration - Stretch, RPi 2/3

Panometric wrote:
Tue May 15, 2018 6:50 pm
FYI, as of Ubuntu MATE 16.04.2 (Xenial) this done already, you just need to set the outputs.
Not on Raspbian. See this thread: https://forum.videolan.org/viewtopic.php?f=13&t=142905
Unfortunately, no-one at Videolan seems to show any interest in this issue.
by McLion
Thu May 03, 2018 11:27 am
Forum: Raspbian
Topic: Tutorial: Compile VLC with HW acceleration - Stretch, RPi 2/3
Replies: 182
Views: 83371

Re: Tutorial: Compile VLC with HW acceleration - Stretch, RPi 2/3

Just tested with VLC 3.0.2 ... still no joy, not with MMAL nor with OMX-IL. :(
by McLion
Mon Apr 30, 2018 8:35 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2cset - exit code / return values in case of errors
Replies: 4
Views: 743

Re: i2cset - exit code / return values in case of errors

Thanks.
Went over it again ... and found the issue ... in front of the terminal :oops: ;)
by McLion
Sat Apr 28, 2018 7:29 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2cset - exit code / return values in case of errors
Replies: 4
Views: 743

Re: i2cset - exit code / return values in case of errors

I already did that, as you can see when you fully read my post.
However, to my surprise, I always receive 0 as exit code.
That is why I need to catch the line Error: Write failed that is written back to the console
by McLion
Fri Apr 27, 2018 3:11 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2cset - exit code / return values in case of errors
Replies: 4
Views: 743

i2cset - exit code / return values in case of errors

Hi I'm using i2cset in a bash script - works as expected. However, sometimes the write fails (I'm 'behind' the why ... should not be the topic here though) I found that i2cset always returns 0 , even on a write fail, and then adds a line to the console Error: Write failed According the source code i...
by McLion
Fri Apr 27, 2018 3:01 pm
Forum: Raspbian
Topic: Bash script: double ascii stream to hex .. and back
Replies: 25
Views: 1700

Re: Bash script: double ascii stream to hex .. and back

Thank you guys ... all working a treat. :D
by McLion
Thu Apr 26, 2018 7:34 am
Forum: Raspbian
Topic: Bash script: double ascii stream to hex .. and back
Replies: 25
Views: 1700

Re: Bash script: double ascii stream to hex .. and back

Wow :o
Thanks a lot for all the input and solutions.
Yes, I could do it in C as well, maybe even easier. However, for this project we try to stay within bash scripts.
Thanks again :D
by McLion
Wed Apr 25, 2018 3:52 pm
Forum: Raspbian
Topic: Bash script: double ascii stream to hex .. and back
Replies: 25
Views: 1700

Bash script: double ascii stream to hex .. and back

Hi I have a variable in a bash script that is variable in length (known length) and contains hex values in double ascii notation, i.e.: 30323441 I need this to have in hex to be able to feed it to i2cset as data, i.e.: 0x02 0x4A ..and the other way round when reading. What is the easiest way to achi...

Go to advanced search