Go to advanced search

by Aydan
Fri Nov 24, 2017 9:18 pm
Forum: General discussion
Topic: type text to 2 screens
Replies: 9
Views: 402

Re: type text to 2 screens

Sure, a GUI written with python's tkinter would lend itself for that. It's more or less "place text from textbox in html template and save to disk".

Regards
Aydan
by Aydan
Fri Nov 24, 2017 7:36 pm
Forum: General discussion
Topic: type text to 2 screens
Replies: 9
Views: 402

Re: type text to 2 screens

It's not as bad as it sounds. The really basic implementation would be to set up nginx webserver on your "server" computer, and have it serve a static website (a somple "index.html" file) containing the text you want to show directly. Then put <meta http-equiv='Refresh' content='60'> inside the <hea...
by Aydan
Fri Nov 24, 2017 8:13 am
Forum: Troubleshooting
Topic: External hard drive unmounts then remounts.
Replies: 9
Views: 317

Re: External hard drive unmounts then remounts.

SInce it's a 3.5" drive, it needs 12V and 5V to operate. Maybe the 5V regulator in the enclosure is marginal, and when transferring large amounts of data it drops the voltage. Another possibility would be that the enclosure doesn't have it's own 5V regulator and uses the 5V from the USB, which of co...
by Aydan
Tue Nov 21, 2017 2:41 pm
Forum: General discussion
Topic: type text to 2 screens
Replies: 9
Views: 402

Re: type text to 2 screens

I'd use a self-refreshing website on the "listeners" which is dynamically generated on the "server" (e.g. via PHP) and reads a text file (on the server) or from a database (mariaDB) where you save the content of the message.

Regards
Aydan
by Aydan
Fri Nov 10, 2017 2:16 pm
Forum: Troubleshooting
Topic: Udev rules don't run after reboot
Replies: 19
Views: 561

Re: Udev rules don't run after reboot

I just got to thinking that if udevd is started while root is still in read only mode, then this would account for the rule not working on boot, but working on service restart. Normally udev rules should not need to write to files on "/" Would be interesting to know the startup sequence of Stretch. ...
by Aydan
Fri Nov 10, 2017 11:17 am
Forum: Troubleshooting
Topic: How to control a DC motor direction using single GPIO from raspberry pi.
Replies: 4
Views: 261

Re: How to control a DC motor direction using single GPIO from raspberry pi.

GPIO - HIGH - Motor forward direction GPIO-LOW-Motor Reverse Direction. This way the motor will always turn in one direction or another. I'm not sure this is what you want. What you could do with one pin is to use PWM: 0% full reverse 50% stop 100% full forward But then your motor controller hardwa...
by Aydan
Thu Nov 09, 2017 7:35 pm
Forum: Troubleshooting
Topic: Udev rules don't run after reboot
Replies: 19
Views: 561

Re: Udev rules don't run after reboot

All were owned by the "grant" user. I have changed one as a test to "root" but still with no luck. What permissions would you suggest? Permissions should be 0644 and owner root:root meaning only writable by user root and user and group are both root. Is your udev rulesfile also only writable by roo...
by Aydan
Thu Nov 09, 2017 3:15 pm
Forum: Troubleshooting
Topic: Udev rules don't run after reboot
Replies: 19
Views: 561

Re: Udev rules don't run after reboot

Who is the owner of "/home/grant/scripts/usbcheck.sh" and what are the permissions?
I suspect you cannot run scripts that do not belong to root and/or are user writable.

Regards
Aydan
by Aydan
Mon Sep 18, 2017 12:43 pm
Forum: General discussion
Topic: I don't understand this error message
Replies: 4
Views: 304

Re: I don't understand this error message

Check if you have mixed spaces with tabs in the indentation.
Python3 will complain about mixed indentation.
Python2 will see a tab character like a space character.

Regards
Aydan
by Aydan
Tue Aug 29, 2017 3:35 pm
Forum: Troubleshooting
Topic: raspi-config viewing issue "solved"
Replies: 6
Views: 325

Re: raspi-config viewing issue

Instead to get the screen in blue/grey of raspi-config with selector (red) i have a black and white screen without any selector. This might be due to your ssh session not supporting colours or the ssh server detecting wrong terminal capabilities. Check what terminal emulation (e.g. VT100) is set in...
by Aydan
Thu Aug 24, 2017 7:25 am
Forum: Beginners
Topic: 5.442001] random: nonblocking pool is initialized
Replies: 6
Views: 541

Re: 5.442001] random: nonblocking pool is initialized

Hello Aydan Thanks for replying. So, from what you are saying I've put the monitor driver (The one on the CD that came with the display) in the wrong place. Is there any way to take the driver back out of the sd card so it boots to my tv screen (I'm using that as a monitor when not watching tv). Ju...
by Aydan
Wed Aug 23, 2017 6:03 pm
Forum: Beginners
Topic: 5.442001] random: nonblocking pool is initialized
Replies: 6
Views: 541

Re: 5.442001] random: nonblocking pool is initialized

The screen should work without a driver, since it's HDMI. For the touch function you may need a driver. So to start with, if you have, put Raspbian on a fresh SD card and boot it with the monitor and USB mouse/Keyboard attached. No need to change any setting yet. This should get you to the Raspbian ...
by Aydan
Tue Aug 22, 2017 11:09 am
Forum: Beginners
Topic: 5.442001] random: nonblocking pool is initialized
Replies: 6
Views: 541

Re: 5.442001] random: nonblocking pool is initialized

Hi Michael, It's not an error message. It only tells you that the random number generator has initialized its pool of numbers for non-blocking access. If this is the last message you see, then this means there is no console started on this display. How is the display connected? I suspect the console...
by Aydan
Wed Aug 16, 2017 7:33 am
Forum: Beginners
Topic: Openwrt
Replies: 14
Views: 1010

Re: Openwrt

ankur_r wrote:
Tue Aug 15, 2017 11:39 pm
I use dd command for same. i.e.

dd if=openwrt-15.05.1-brcm2708-bcm2709-sdcard-vfat-ext4.img of=/dev/sdd1 <-- This is your problem
the correct command is this:

Code: Select all

dd if=openwrt-15.05.1-brcm2708-bcm2709-sdcard-vfat-ext4.img of=/dev/sdd
Regards
Aydan
by Aydan
Fri Aug 11, 2017 7:26 am
Forum: General discussion
Topic: A request for a Linux guru
Replies: 10
Views: 781

Re: A request for a Linux guru

Make sure you have kernel version 4.9.34 or later, otherwise the bugfix I linked to will not be in the driver.

Regards
Aydan
by Aydan
Wed Aug 09, 2017 11:08 am
Forum: General discussion
Topic: A request for a Linux guru
Replies: 10
Views: 781

Re: A request for a Linux guru

There was a bug in the driver which didn't correctly initialize the device. This has been fixed in recent raspberry kernel versions. I don't know which one exactly, since I've only confirmed correct function for the RPi-update one. see also https://github.com/raspberrypi/linux/issues/2075 Regards Ay...
by Aydan
Fri Jun 02, 2017 7:57 am
Forum: General discussion
Topic: Sidebar in Blog does not work
Replies: 0
Views: 122

Sidebar in Blog does not work

I noticed the sidebar links for the articles don't work anymore.
All links look like this:
https://www.raspberrypi.org/blog/# <-- notice the empty bookmark reference
So either the bookmarks aren't picked up or they are missing form the page.

Regards
Aydan
by Aydan
Mon May 15, 2017 5:45 pm
Forum: General discussion
Topic: raspi-config problem on net-boot-pi
Replies: 6
Views: 622

Re: raspi-config problem on net-boot-pi

An alternative would be to simply make /boot a subdirectory of the remote booted Pi's NFS root, then make that the directory the TFTP server uses. That won't work for multiple Pi's with individual tftp directories. What should work though is to symlink NFS_root/boot to the tftp location. Regards Ay...
by Aydan
Mon May 15, 2017 11:21 am
Forum: General discussion
Topic: raspi-config problem on net-boot-pi
Replies: 6
Views: 622

Re: raspi-config problem on net-boot-pi

What I did for this situation is to export the tftp directory via NFS and mount it on /boot.
This shoul mak it possible to do kernel/bootloader updates and use raspi-config

Regards
Aydan
by Aydan
Fri Feb 17, 2017 3:30 pm
Forum: General discussion
Topic: Read USB MBR Data and modify
Replies: 6
Views: 577

Re: Read USB MBR Data and modify

Thats cool! But why the seek(512)? surely it starts at offset zero. After changing the MBR a seek(0) would be needed in order to rewind the file and write out the new MBR starting at zero. Or have I missed something? Oops, you are correct: https://en.wikipedia.org/wiki/Master_boot_record @chanduvin...
by Aydan
Fri Feb 17, 2017 3:14 pm
Forum: General discussion
Topic: Read USB MBR Data and modify
Replies: 6
Views: 577

Re: Read USB MBR Data and modify

in linux you can use a blockdevice like a file.

In python for example:

Code: Select all

diskpath="/dev/sdx"
f=open(diskpath,"rb+") #open disk readwrite binary
#read MBR (2nd block)
f.seek(512)
MBR=f.read(512)
#modify MBR

#write MBR
f.seek(512)
f.write(MBR)
run as root

Regards
Aydan
by Aydan
Mon Dec 19, 2016 8:58 pm
Forum: General discussion
Topic: Raspian to conservative / old compiler / cross-compiler
Replies: 26
Views: 2905

Re: Raspian to conservative / old compiler / cross-compiler

If you use Eclipse for C/C++ development, you'll only have to point it to your library headers and it will do syntax checking and autocomplete by doing code analysis without compiling. It only complains if it's missing libraries. This is worse in e.g. Python for some platform specific binary extensi...
by Aydan
Mon Dec 19, 2016 4:43 pm
Forum: General discussion
Topic: Raspian to conservative / old compiler / cross-compiler
Replies: 26
Views: 2905

Re: Raspian to conservative / old compiler / cross-compiler

Just to add my 2 cents worth. I mostly develop in python on my Win7 machine in Eclipse/Pydev, but I develop remotely. Meaning all the sources are on the Pi, shared via Samba. I have a little debug wrapper script that connects automatically to the PyDev debug server on the machine i'm sshing in from,...
by Aydan
Tue Nov 29, 2016 10:54 pm
Forum: Advanced users
Topic: udev rule for identical USB cameras
Replies: 11
Views: 2031

Re: udev rule for identical USB cameras

I'm sure if you'd analyze the outputs of "udevadm info" for the two camera ports, you'd be able to find a distinguishing attribute to only trigger for the proper port.

Regards
Aydan
by Aydan
Tue Nov 15, 2016 2:04 pm
Forum: Troubleshooting
Topic: B+: Boots only after second power cycle
Replies: 11
Views: 965

Re: B+: Boots only after second power cycle

OK, the partition is not full.
Could you run an "fsck -f" on that partition and see if it then boots properly?
The partition needs to be unmounted first.

Regards
Aydan

Go to advanced search