Go to advanced search

by PlanB
Thu Mar 14, 2019 12:51 am
Forum: Troubleshooting
Topic: edid problem
Replies: 6
Views: 409

Re: edid problem

I think it's a waveshare knockoff maybe? Either way it's causing more grief than it's worth! So challenging for a UserLand plod like me to tangle with something like EDID!
by PlanB
Wed Mar 13, 2019 10:57 pm
Forum: Troubleshooting
Topic: edid problem
Replies: 6
Views: 409

Re: edid problem

Yeah, my idea of a neat solution too! Alas EDID!= don't work for whatever reason.
by PlanB
Wed Mar 13, 2019 11:50 am
Forum: Troubleshooting
Topic: edid problem
Replies: 6
Views: 409

Re: edid problem

That's a nice idea except the edid info for the non identifying monitor is wrong, edid wants to use mode4 whereas the non identifying monitor needs mode87. I know what settings the non identifying monitor needs I just can't figure out a way to apply them when it doesn't identify.
by PlanB
Wed Mar 13, 2019 2:17 am
Forum: Troubleshooting
Topic: edid problem
Replies: 6
Views: 409

edid problem

I've got 2 monitors I use interchangeable with a pi. The HP monitor self identifies root@raspberrypi:/home/pi# tvservice -n device_name=HWP-HP_L1755 as & it is happy with the preferred hdmi settings root@raspberrypi:/home/pi# tvservice -s state 0x120006 [DVI DMT (35) RGB full 5:4], 1280x1024 @ 60.00...
by PlanB
Mon Mar 04, 2019 4:49 am
Forum: Troubleshooting
Topic: Pi won't reboot without pulling power
Replies: 24
Views: 22445

Re: Pi won't reboot without pulling power

Is there indication of what was actually causing the hang in reboot Dougie? I ask because I had a bunch of Jessie Lite PIs that used to reboot reliably then they didn't & I was wondering if some update I did actually introduced the problem?
by PlanB
Sat Mar 02, 2019 1:59 am
Forum: Advanced users
Topic: Gparted recommended minimum sizes causes error
Replies: 7
Views: 6263

Re: Gparted recommended minimum sizes causes error

Why does resizing have to be such a headache?! I had no luck with PiShrink (major partition alignment problems) while qemu-img, gparted & every other linux based app I've tried don't work either. Doomed to spend the rest of my days waiting for big fat quarter full 8G sd cards to clone.
by PlanB
Sat Jan 12, 2019 4:31 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C to Honeywell Pressure Sensor
Replies: 7
Views: 5896

Re: I2C to Honeywell Pressure Sensor

You can check if it's there or not with i2cdetect -y 1 and read it with import smbus def _getabp(): # reads the ABPDANN005PG2A3 i2c 0-5psi pressure sensor i2c=smbus.SMBus(1) ans=i2c.read_word_data(0x28, 0x01) # sends i2c address & read bit, returns two 8 bit bytes as lsb, msb ans=(((ans & 0x00FF) <<...
by PlanB
Sat Nov 10, 2018 1:26 am
Forum: Troubleshooting
Topic: Pi3 Jessie lite reboot hang
Replies: 3
Views: 304

Re: Pi3 Jessie lite reboot hang

Nov 9 11:59:02 raspberrypi kernel: [ 408.805131] sierra ttyUSB3: Sierra USB modem converter now disconnected from ttyUSB3 Nov 9 11:59:02 raspberrypi kernel: [ 408.805204] sierNov 9 11:52:00 raspberrypi rsyslogd: [origin software="rsyslogd" swVersion="8.4.2" x-pid="420" x-info="http://www.rsyslog.com...
by PlanB
Fri Nov 09, 2018 10:34 am
Forum: Troubleshooting
Topic: Pi3 Jessie lite reboot hang
Replies: 3
Views: 304

Re: Pi3 Jessie lite reboot hang

Upgrading from Wheezy was so traumatic, I was hoping to get a bit more mileage out this 'un before the next wrench.
by PlanB
Fri Nov 09, 2018 1:41 am
Forum: Troubleshooting
Topic: Pi3 Jessie lite reboot hang
Replies: 3
Views: 304

Pi3 Jessie lite reboot hang

I've been using a Jessie lite OS for over a year now but lately it is prone to hang on reboot, always with the same 6 lines. [ OK } Started Show Plymouth Reboot Screen [ OK ] Stopped target Network Stopping dhcpcd on all interfaces... [ OK ] Stopped target Remote target File Systems [ OK ] Stopped t...
by PlanB
Thu May 10, 2018 12:17 am
Forum: Python
Topic: Pigpio HX711.py will hang
Replies: 14
Views: 2109

Re: Pigpio HX711.py will hang

I got https://www.ebay.com.au/itm/Digital-Barometric-Pressure-Sensor-Module-Liquid-Water-Level-Controller-Board/332319488006?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649 working with this https://hackaday.io/project/25848-a-cheap-24-bit-differential-adc-for-raspberry-pi/log/62897-pytho...
by PlanB
Wed May 02, 2018 1:08 am
Forum: Python
Topic: Pigpio HX711.py will hang
Replies: 14
Views: 2109

Re: Pigpio HX711.py will hang

The translators I tried mashed the .PDFs pretty bad but it was the same 2s complement output & clocking methodology @ 10/40Hz. I'm loath to email you the dogs breakfast I waded through, I'll see if I can come up with a more legible translation.
by PlanB
Tue May 01, 2018 8:50 am
Forum: Advanced users
Topic: Changing IP config without rebooting
Replies: 13
Views: 14064

Re: Changing IP config without rebooting

After a lot of trial & error (the great fallback for those of us bedazzled by networking) I found this works in Jessie. import os import subprocess NET_DIR='/sys/class/net' print; print 'reload daemon' subprocess.call(['sudo','systemctl','daemon-reload']) print 'stop dhcpcd' subprocess.call(['sudo',...
by PlanB
Tue May 01, 2018 8:43 am
Forum: Python
Topic: Pigpio HX711.py will hang
Replies: 14
Views: 2109

Re: Pigpio HX711.py will hang

There is a nice little differential pressure breakout board (https://www.ebay.com.au/itm/Digital-Barometric-Pressure-Sensor-Module-Liquid-Water-Level-Controller-Board/332319488006?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649) using the HX711s sibling the H710B. My reading of the data s...
by PlanB
Thu Apr 05, 2018 11:56 pm
Forum: Advanced users
Topic: Changing IP config without rebooting
Replies: 13
Views: 14064

Re: Changing IP config without rebooting

You don't have a Jessie version of this script by any chance? Jessie does not seem to have anything in /sys/class/net/wlan0
by PlanB
Wed Jan 24, 2018 1:17 pm
Forum: Troubleshooting
Topic: External ip address
Replies: 2
Views: 609

Re: External ip address

Can someone explain the difference between print((([ip for ip in socket.gethostbyname_ex(socket.gethostname())[2] if not ip.startswith("127.")] or [[(s.connect(("8.8.8.8", 53)), s.getsockname()[0], s.close()) for s in [socket.socket(socket.AF_INET, socket.SOCK_DGRAM)]][0][1]]) + ["no IP found"])[0])...
by PlanB
Tue Jan 23, 2018 7:19 am
Forum: Advanced users
Topic: Turning on/off USB Power
Replies: 9
Views: 4035

Re: Turning on/off USB Power

I've given up on the Pi zero for low power apps because you can only put USB modems to sleep not switch them off. I can get lower current drain with a full sized board pi2 B+ using os.system("echo '1-1' > /sys/bus/usb/drivers/usb/unbind") in Jessie to physically switch the ports off. It's a difficul...
by PlanB
Tue Jan 23, 2018 7:00 am
Forum: Troubleshooting
Topic: External ip address
Replies: 2
Views: 609

External ip address

I like this script because it will deliver the pi external ip address without asking a website like info.io to get it s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) try: s.connect(('10.255.255.255', 1)); IP = s.getsockname()[0] # doesn't even have to be reachable except: IP = 'unknown' finally...
by PlanB
Mon Jan 22, 2018 9:36 pm
Forum: Troubleshooting
Topic: shutil / listdir problem
Replies: 2
Views: 355

Re: shutil / listdir problem

Thnx, I shouldn't write code past my bedtime then embarrass myself online with dumb questions.
by PlanB
Mon Jan 22, 2018 1:27 pm
Forum: Troubleshooting
Topic: shutil / listdir problem
Replies: 2
Views: 355

shutil / listdir problem

I've got a simple little python 2.7 program (running under Jessie) for moving a photo; photo_queue = listdir('/home/pi/photos') shutil.move('photo1.png', '/home/pi/photos/photo1.png') print str(photo_queue) To my great surprise the last line didn't produce any output! But if I move the print to a se...
by PlanB
Thu Nov 23, 2017 10:30 am
Forum: Troubleshooting
Topic: pixelmath
Replies: 1
Views: 340

pixelmath

I've been trying to get a python program for handling the seek thermal camera to run. By trial & error with apt-get install or pip install I've manged to wrestle most of the dependencies (pyusb1.0, pil, numpy, scipy, imagemagick, opencv, cv2, etc) into place on a Pi3 with Jessie. It's been a long te...
by PlanB
Sat Nov 18, 2017 1:09 pm
Forum: Raspbian
Topic: Identifying OS fully
Replies: 5
Views: 785

Re: Identifying OS fully

root@raspberrypi:/home/pi# cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" NAME="Raspbian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.rasp...
by PlanB
Sat Nov 18, 2017 10:52 am
Forum: Raspbian
Topic: Identifying OS fully
Replies: 5
Views: 785

Re: Identifying OS fully

Same result for both
by PlanB
Sat Nov 18, 2017 6:47 am
Forum: Raspbian
Topic: Identifying OS fully
Replies: 5
Views: 785

Identifying OS fully

I've got a version of Jessie lite that responds to cat /etc/os-release with PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" Trouble is it wouldn't let me apt-get install libopencv-dev or libusb-1.0-0-dev until I overhauled it with apt-get autoremove && sudo apt-get -f install && sudo apt-get update && s...
by PlanB
Fri Nov 03, 2017 6:12 am
Forum: Advanced users
Topic: (Is this) The correct ways to install the watchdog package?
Replies: 46
Views: 62800

Re: Is this the correct way to install the watchdog package?

On my Jessie lite it's not /etc/systemd/systemd.conf but /etc/systemd/system.conf Should the watchdog work if I use 'poweroff' from the cmd line?

Go to advanced search