Go to advanced search

by devenh
Tue Oct 23, 2018 1:05 am
Forum: Raspbian
Topic: Remote desktop (xrdp) on stretch: Some menu items do not work
Replies: 52
Views: 28959

Re: Remote desktop (xrdp) on stretch: Some menu items do not work

As much as I'd like to get the Shutdown options dialog to work, I gave up trying and simply created these two scripts and placed them on my desktop:

shutdown.sh

Code: Select all

#!/bin/bash
sudo shutdown -h now
reboot.sh

Code: Select all

#!/bin/bash
sudo reboot
by devenh
Fri May 04, 2018 8:44 pm
Forum: Raspbian
Topic: Windows no longer discovers Samba Pi
Replies: 1
Views: 343

Windows no longer discovers Samba Pi

I think this is really a Windows 10 issue, but my Raspberry Pi's (running Samba) no longer show up in Windows Explorer | Network | Computers. The Pi's used to show up in Explorer just fine. File access works correctly if I type in the Pi name (e.g. \\pi\share). Maybe an automatic Windows update some...
by devenh
Thu May 03, 2018 9:41 pm
Forum: Raspbian
Topic: Setting default USB (/dev/ttyACM0) baud rates
Replies: 3
Views: 906

Re: Setting default USB (/dev/ttyACM0) baud rates

I'm running a 10hz update rate, so I am pushing more data through the pipe. This is why I'm always checking throughput as I don't want to overload the pipe.
by devenh
Thu May 03, 2018 3:25 am
Forum: Raspbian
Topic: Setting default USB (/dev/ttyACM0) baud rates
Replies: 3
Views: 906

Setting default USB (/dev/ttyACM0) baud rates

I am using a USB GPS (u-blox chipset, /dev/ttyACM0) and at boot or when the device is plugged in, the baud rate is 9600. How can I configure my system so that the baud rate is 115200 or higher at startup or when it is plugged in? (I know the stty -F 115200 /dev/ttyACM0 will change the baud rate, but...
by devenh
Fri Apr 20, 2018 3:51 am
Forum: Raspbian
Topic: How to disable timesyncd
Replies: 1
Views: 696

How to disable timesyncd

timesyncd apparently replaces ntpd in stretch. I prefer chrony, but the chrony installation did not disable timesyncd, so I need to figure out how to disable it.
by devenh
Sat Feb 24, 2018 11:36 pm
Forum: Raspbian
Topic: Getting the latest versions with apt-get
Replies: 3
Views: 809

Getting the latest versions with apt-get

I've noticed that apt-get often does not get the latest versions of packages. For instance, I like to use the ntp alternative chrony. apt-get installs version 1.30 from July, 2014 on my jessie system. If I lookup chrony on packages.debian.org, I can see that different versions are listed for wheezy ...
by devenh
Thu Feb 22, 2018 10:01 pm
Forum: Troubleshooting
Topic: Samba public share not showing up on Windows 10
Replies: 7
Views: 6447

Re: Samba public share not showing up on Windows 10

Ran into this same problem and a search led me here. Problem solved! Thanks!
Hopefully there will be a more secure version of SAMBA for the Pi.
by devenh
Thu Aug 17, 2017 1:19 pm
Forum: Python
Topic: Screen capture - calling scrot from Python 3 not working
Replies: 5
Views: 1810

Re: Screen capture - calling scrot from Python 3 not working

Does scrot allow you to specify a filename for the image?
Yes.

Code: Select all

scrot filename
by devenh
Wed Aug 16, 2017 4:54 pm
Forum: Python
Topic: Screen capture - calling scrot from Python 3 not working
Replies: 5
Views: 1810

Re: Screen capture - calling scrot from Python 3 not working

By 'fail' I mean the result code returned is zero and the png file was not created in \home\pi as it did when run from the command prompt. However, based on further testing, it looks like scrot doesn't return a result code, so the code returned by os.system should be ignored. Furthermore, I mistaken...
by devenh
Wed Aug 16, 2017 3:39 pm
Forum: Python
Topic: Screen capture - calling scrot from Python 3 not working
Replies: 5
Views: 1810

Screen capture - calling scrot from Python 3 not working

I'm trying to do a simple and easy screen capture from Python (meaning I don't have to install any additional packages). Executing scrot from the command window works fine, but calling it from Python fails: result = os.system('scrot') Is there some other way to call scrot that will work? Or is there...
by devenh
Sun Jul 16, 2017 6:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to connect 5 pin GPS serial connector?
Replies: 2
Views: 625

Re: How to connect 5 pin GPS serial connector?

Thanks!
bensimmo wrote: Seems quite expensive for a GPS module though..
Actually this is the lowest cost board that I've found with a high precision GPS chip. The ublox NEO-7P has built in RTKLIB capability and can be configured to output PPP (precise point positioning) which enables sub meter accuracy.
by devenh
Sun Jul 16, 2017 4:20 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to connect 5 pin GPS serial connector?
Replies: 2
Views: 625

How to connect 5 pin GPS serial connector?

I'd like to connect a GPS board (see product link below) to a Pi3. The board has a 5 pin GPS serial connector (GND, 3.3V, TX, RX, 5V pins). What is the easiest way to connect the board? Once connected, what will the device name be (e.g. /dev/ttyAMA0)? Finally, I'd like to tuck the GPS board inside t...
by devenh
Tue Apr 11, 2017 4:45 am
Forum: Raspbian
Topic: Permission denied /dev/ttyAMA0
Replies: 3
Views: 7979

Re: Permission denied /dev/ttyAMA0

jojopi wrote: Disable the login shell on the serial port in the interfacing options of "sudo raspi-config", and reboot. For B+ that may be all that is required.
That worked. Thanks.
by devenh
Mon Apr 10, 2017 10:08 pm
Forum: Raspbian
Topic: Permission denied /dev/ttyAMA0
Replies: 3
Views: 7979

Permission denied /dev/ttyAMA0

About once a year I update all my Pi's to the latest release (in this case 2017-04-10) of Raspbian and inevitably there are always a few glitches. I have a Pi B+ that has been running an Adafruit GPS Hat for 2+ years. One of the first tests after installing the new OS is to see if the GPS is working...
by devenh
Tue Oct 25, 2016 8:42 pm
Forum: Python
Topic: Determining Python CPU usage
Replies: 3
Views: 1253

Re: Determining Python CPU usage

process.cpu_percent is what I am looking for ... thanks. With psutil.Process() you can get the PID. I would think the process is run on a single core, but I don't see a way in psutil to identify the core. I wrote some code to query /proc/stat that shows utilization by core. Interestingly, this shows...
by devenh
Tue Oct 25, 2016 7:03 pm
Forum: Python
Topic: Determining Python CPU usage
Replies: 3
Views: 1253

Determining Python CPU usage

I'd like to monitor the CPU usage for my Python app. I can get total CPU usage and CPU usage for each of the four CPUs. I'm not interested in total usage. I'm interested in CPU usage by core, but I don't know which of the four CPUs Python is running on. How can I determine this?
by devenh
Sun Oct 02, 2016 3:05 am
Forum: Troubleshooting
Topic: cgps/xgps not connecting to Bluetooth GPS
Replies: 2
Views: 1240

Re: cgps/xgps not connecting to Bluetooth GPS

I have not been able to get a reliable connection to the XGPS150a, but here are a few things to try: Turn the XGPS150a on and make sure it is set to Andriod (as opposed to iPhone) mode. On the Raspberry, run the following command: hcitool scan You should see the XGPS150a and an address in the form o...
by devenh
Tue Sep 06, 2016 6:59 pm
Forum: Troubleshooting
Topic: How to disable authentication for remote shutdown?
Replies: 1
Views: 1035

How to disable authentication for remote shutdown?

Until the 5/27/2016 version of Jessie I could remotely shutdown my Pi without authentication (I am using the GUI). However, the 5/27/2016 version does require authentication for remote shutdowns and reboots. How can I disable the authentication request?
by devenh
Wed Aug 31, 2016 2:01 am
Forum: Troubleshooting
Topic: 3.5mm audio output volume
Replies: 3
Views: 827

Re: 3.5mm audio output volume

Should have noted that pygame volume is set to the maximum. I've also tried a few scripts that adjust volume with no luck.
by devenh
Wed Aug 31, 2016 1:49 am
Forum: Troubleshooting
Topic: 3.5mm audio output volume
Replies: 3
Views: 827

3.5mm audio output volume

I have a Python 3 app that plays audio using pygame. The audio output using headphones is okay, but if I plug the audio into my car's AUX input, the volume is very low. I have to turn the car's volume WAY up and the sound is still low. Running a Pi 2 under Jessie.

Suggestions?
by devenh
Sun May 22, 2016 5:13 pm
Forum: Python
Topic: pygame.mixer.music.queue not working for me!
Replies: 5
Views: 2534

Re: pygame.mixer.music.queue not working for me!

If pygame.mixer.music.queue does not work, can anyone suggest an alternative python library that has the ability to queue music in a non blocking fashion?
by devenh
Sat Apr 02, 2016 1:14 pm
Forum: Python
Topic: pygame.mixer.music.queue not working for me!
Replies: 5
Views: 2534

Re: pygame.mixer.music.queue not working for me!

Can you verify that the second file plays through pygame? Yes it does. Also, how are you running this code? If you execute it as a python script then, without some loop at the end, the code will just exit. I thought the same thing and had already tried adding sleep(20), but same result. It appears ...
by devenh
Mon Mar 28, 2016 2:49 pm
Forum: Python
Topic: pygame.mixer.music.queue not working for me!
Replies: 5
Views: 2534

pygame.mixer.music.queue not working for me!

I'm sure I'm missing something simple, but I just can't get the queue function to work. I'm using Python 3.4.2 under the latest Jessie release on a Pi 3. I have tested with wav and ogg files. PATHAUDIO = '/home/pi/Music/' ext = '.ogg' print(ext) pygame.mixer.init() pygame.mixer.music.load(PATHAUDIO ...
by devenh
Thu Oct 22, 2015 6:58 pm
Forum: Raspbian
Topic: Jessie taskbar: application list incomplete
Replies: 2
Views: 839

Re: Jessie taskbar: application list incomplete

I've seen the same thing. Not a real solution, but I did reinstall Jessie and that solved the problem.
by devenh
Wed Oct 21, 2015 6:18 pm
Forum: Raspbian
Topic: STICKY: Jessie (now defunct and replaced with Stretch) Q&A
Replies: 396
Views: 213828

Re: Jessie Q&A

diederik wrote: And the contents of '/etc/apt/sources.list' ?
I checked my script and I see that it replaced sources.list with a Wheezie version of the file. Once this was fixed, things worked much better ;)

Go to advanced search