Go to advanced search

by sapnho
Fri Dec 25, 2020 9:06 pm
Forum: General discussion
Topic: Is a Flirc case overkill for running NextCloud on a Pi4?
Replies: 6
Views: 225

Re: Is a Flirc case overkill for running NextCloud on a Pi4?

Flirc is great for any application. My Pi4 CPU temp went down 20 C degrees compared to the official Pi case.
by sapnho
Sat Dec 19, 2020 6:23 am
Forum: General discussion
Topic: Why does is take so much longer to copy individual files than a folder (with the same files)?
Replies: 2
Views: 303

Re: Why does is take so much longer to copy individual files than a folder (with the same files)?

You have not said how you were copying between the machines, and with what protocol.
Fair point. I did the test with both smb and afp connections and copied the same files. At least five times to confirm my findings. Always with the same result.
by sapnho
Fri Dec 18, 2020 7:33 am
Forum: General discussion
Topic: Why does is take so much longer to copy individual files than a folder (with the same files)?
Replies: 2
Views: 303

Why does is take so much longer to copy individual files than a folder (with the same files)?

By accident, I found out that copying an entire folder with 2000 images from a Mac onto a Pi 4 takes about 12 minutes. If I, however, copy 2000 files onto an existing (but empty) directory on the Pi, it takes about 30 minutes.

Why is that?
by sapnho
Thu Dec 17, 2020 8:43 am
Forum: Networking and servers
Topic: Netatalk vs Samba for macOS & Windows
Replies: 10
Views: 591

Re: Netatalk vs Samba for macOS & Windows

but it does work, even though avahi sometimes does not really play well with Bonjour, so auto discoveries are occasionally choppy Yes, I noticed the same thing with Samba that's why I am reconsidering Netatalk. But maybe it's a configuration issue with Samba? Can anybody paste a Samba config file t...
by sapnho
Thu Dec 17, 2020 4:08 am
Forum: Networking and servers
Topic: Netatalk vs Samba for macOS & Windows
Replies: 10
Views: 591

Re: Netatalk vs Samba for macOS & Windows

If you want network speed, Mac OS supports NFS too. It's not quite as friendly as CIFS or AppleTalk, but it's screamingly fast. That's interesting. I only ever see Samba and Netatalk installation suggestions in tutorials. Regarding Netatalk: What I noticed that if I only have Samba installed in a m...
by sapnho
Wed Dec 16, 2020 9:25 pm
Forum: Networking and servers
Topic: Netatalk vs Samba for macOS & Windows
Replies: 10
Views: 591

Netatalk vs Samba for macOS & Windows

I was under the impression that installing Samba alone is fine for accessing Raspberry Pi files from both macOS and Windows worlds. Windows was always on Samba, and macOS had also moved from afp to Samba. That was my understanding. Is that (still or was it ever) correct? Are you guys, especially tho...
by sapnho
Mon Nov 09, 2020 9:09 am
Forum: Troubleshooting
Topic: H2 trigger Python script on Bluetooth button click
Replies: 9
Views: 309

Re: H2 trigger Python script on Bluetooth button click

Hi renice123, thanks for your answer and sorry for the late reply. I will look into that but since I have no knowledge of the C language, I will try to piece together what I need to make this work. :-)
by sapnho
Sun Oct 18, 2020 6:39 am
Forum: Advanced users
Topic: [solved] Autostart script on Raspbian Lite?
Replies: 18
Views: 680

Re: Autostart script on Raspbian Lite?

Hi Pieter, I had the same issue some time ago, so I researched and wrote an article: https://www.thedigitalpictureframe.com/ ... pberry-pi/ so that I would remember. :-)
by sapnho
Tue Oct 13, 2020 8:43 am
Forum: Troubleshooting
Topic: H2 trigger Python script on Bluetooth button click
Replies: 9
Views: 309

Re: H2 trigger Python script on Bluetooth button click

Yes, indeed, thanks Douglas6.

I am a bit surprised though that it seems so hard to check for button clicks of a Bluetooth device.
by sapnho
Mon Oct 12, 2020 2:26 pm
Forum: Troubleshooting
Topic: H2 trigger Python script on Bluetooth button click
Replies: 9
Views: 309

Re: H2 trigger Python script on Bluetooth button click

BTW, I found this post which uses the exact same button https://codeandlife.com/2018/07/21/8-bl ... pi-zero-w/ but it doesn't explain how the various keys of the Bluetooth button are being used.
by sapnho
Mon Oct 12, 2020 1:22 pm
Forum: Troubleshooting
Topic: H2 trigger Python script on Bluetooth button click
Replies: 9
Views: 309

Re: H2 trigger Python script on Bluetooth button click

Thanks, Douglas. I would start by writing a program (I don't think you mentioned what language you plan to use), that simply accepts keyboard input and maybe prints the character received, in hex, because I believe it sends non-printable characters Excellent, will do that. The language would be Pyth...
by sapnho
Sun Oct 11, 2020 2:38 pm
Forum: Troubleshooting
Topic: H2 trigger Python script on Bluetooth button click
Replies: 9
Views: 309

H2 trigger Python script on Bluetooth button click

I am currently trying to put a tutorial together for a simple Bluetooth button remote for a Raspberry Pi digital picture frame. However, this seems to be a bit trickier than I originally thought. The questions is, how can I trigger a Python script on the Pi when you click on a (paired and connected)...
by sapnho
Sat Oct 10, 2020 8:04 pm
Forum: Troubleshooting
Topic: H2 find the right MAC address for a Bluetooth button
Replies: 2
Views: 99

Re: H2 find the right MAC address for a Bluetooth button

Great idea, thanks @Douglas6!
by sapnho
Sat Oct 10, 2020 2:09 pm
Forum: Troubleshooting
Topic: H2 find the right MAC address for a Bluetooth button
Replies: 2
Views: 99

H2 find the right MAC address for a Bluetooth button

I would like to connect a Bluetooth button to my Pi 4. But when I start the scan process, I get about ten different MAC addresses from various devices. Except for my Bluetooth headphones, there is no name of a manufacturer or any other helpful information attached somewhere. Is there a trick on how ...
by sapnho
Tue Jun 09, 2020 11:32 am
Forum: Networking and servers
Topic: Samba shares no longer accessible after reboot unless Force Quit
Replies: 0
Views: 170

Samba shares no longer accessible after reboot unless Force Quit

I am using macOS to access the shared folders with SAMBA on a Raspberry Pi 3. Whenever I reboot the Raspberry Pi, my folders are no longer shown in the macOS finder window and it looks like this: Pi not showing.png I have to force quit the Finder Force Quit.png to be able to access the files again P...
by sapnho
Tue Jun 09, 2020 5:40 am
Forum: Python
Topic: systemd service refuses to launch Python file
Replies: 2
Views: 263

Re: systemd service refuses to launch Python file

You need to add client.loop_start() after the client.connect.
@trejan: Thank you so much! That solution works beautifully!
by sapnho
Mon Jun 08, 2020 7:26 pm
Forum: Python
Topic: systemd service refuses to launch Python file
Replies: 2
Views: 263

systemd service refuses to launch Python file

I am having a bit of a problem with a Python file that works fine when launched from the command line but doesn't when launched as a systemd service and I have been analysing this for 24 hours now and don't get any closer to a solution.. This is my Python file "count_images_mqtt.py". It co...
by sapnho
Fri Jun 05, 2020 3:25 pm
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 279
Views: 53616

Re: Image viewer with transition between images

And all the current options of Pi3D are summarized here: https://www.thedigitalpictureframe.com/ ... ry-config/

Thanks, Paddy, for a great update of Pi3D!
by sapnho
Fri Jun 05, 2020 3:21 pm
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 279
Views: 53616

Re: Image viewer with transition between images

Hi Beat, while Paddy was busy updating PictureFrame2020, I updated all the tutorials for building digital picture frames: https://www.thedigitalpictureframe.com/?s=pi3d If you want to change subdirectories you can use PiHelper (https://www.thedigitalpictureframe.com/pihelper-remote-control-raspberry...
by sapnho
Tue May 26, 2020 9:06 pm
Forum: General discussion
Topic: Looking for command line for "Legacy/Original non-GL desktop driver" (raspi-config)
Replies: 5
Views: 620

Re: Looking for command line for "Legacy/Original non-GL desktop driver" (raspi-config)

trejan wrote:
Tue May 26, 2020 8:33 pm
There is no command line option to change the driver. You need to use the menu or edit /boot/config.txt yourself and comment out the dtoverlay=vc4-kms-v3d and dtoverlay=vc4-fkms-v3d lines.
Ah, ok, thanks.
by sapnho
Tue May 26, 2020 8:31 pm
Forum: General discussion
Topic: Looking for command line for "Legacy/Original non-GL desktop driver" (raspi-config)
Replies: 5
Views: 620

Re: Looking for command line for "Legacy/Original non-GL desktop driver" (raspi-config)

Well, if it was so easy! The relevant section of the script is: if is_pifour ; then GLOPT=$(whiptail --title "Raspberry Pi Software Configuration Tool (raspi-config)" --menu "GL Driver" $WT_HEIGHT $WT_WIDTH $WT_MENU_HEIGHT \ "G1 Legacy" "Original non-GL desktop dri...
by sapnho
Tue May 26, 2020 6:29 pm
Forum: General discussion
Topic: Looking for command line for "Legacy/Original non-GL desktop driver" (raspi-config)
Replies: 5
Views: 620

Looking for command line for "Legacy/Original non-GL desktop driver" (raspi-config)

I am looking for the non interactive command line for the G1 option in the raspi-config menu (on a Pi 4, I believe the Pi3 has 3 options here). I found an almost complete list of the non interactive commands here https://github.com/raspberrypi-ui/rc_gui/blob/master/src/rc_gui.c#L23-L70 but I can't f...
by sapnho
Sun May 24, 2020 6:06 pm
Forum: General discussion
Topic: feh-like package to play both images and videos
Replies: 1
Views: 180

feh-like package to play both images and videos

I am looking for a command line viewer software like feh that can show not just images but also videos. Has anybody comes across anything in this direction?
by sapnho
Sat May 16, 2020 6:21 am
Forum: General discussion
Topic: No creation of default directories with Raspbian Buster with desktop anymore?
Replies: 12
Views: 874

Re: No creation of default directories with Raspbian Buster with desktop anymore?

That's good to know, thanks, everyone! Another thing that I noticed on the Pi4: After activating 4K in raspi-config, without connecting a monitor, it takes 5 minutes to boot instead of the usual few seconds. I should be getting a test 4k monitor soon so that I can test that behavior with a connected...

Go to advanced search