Go to advanced search

by thagrol
Wed Nov 11, 2020 11:45 am
Forum: Troubleshooting
Topic: RAM Under-reported/under-utilized
Replies: 4
Views: 172

Re: RAM Under-reported/under-utilized

No one has mentioned the obvious: GPU RAM. That's taken from the total. Linux only sees what's left.
by thagrol
Wed Nov 11, 2020 11:43 am
Forum: Beginners
Topic: Two LANs on a RasPi
Replies: 3
Views: 138

Re: Two LANs on a RasPi

I'm looking at a RasPi for an application I have but it needs 2 LAN connections - i.e. there are two discrete LANs it would need to communicate on. Is it possible/feasable to implement a second LAN interface on the RasPi? Yes Is a USB-LAN adaptor on a USB hub a realistic option, in which case is th...
by thagrol
Wed Nov 11, 2020 11:31 am
Forum: Python
Topic: GPIO event detection is not detecting events
Replies: 16
Views: 458

Re: GPIO event detection is not detecting events

I've just noticed something with your original code that may be related, especially when combined with debouce: GPIO.add_event_detect(22, GPIO.BOTH, callback=my_function, bouncetime=300) That's going to trigger the call back on both a rising and a falling edge. Twice as often as needed to detect a b...
by thagrol
Wed Nov 11, 2020 11:23 am
Forum: Troubleshooting
Topic: connecting external keyboard to headless PI
Replies: 19
Views: 651

Re: connecting external keyboard to headless PI

so put your keyboard inputs into a file and redirect stdin for your program to that file.. something like $ python mypythonscript.py < Path_to/File_with_keyboard_input.txt https://www.guru99.com/linux-redirection.html I fail to see how that's going to help. How will the keyboard input get into the ...
by thagrol
Wed Nov 11, 2020 11:20 am
Forum: Troubleshooting
Topic: connecting external keyboard to headless PI
Replies: 19
Views: 651

Re: connecting external keyboard to headless PI

So your program is using stdin (that's what the input() function does). Or at least that's what I'd expect it to do in any sane language but as you haven't told us which language you're using... im using python for coding look i will tell you the scenario the input given to PI is from keyboard wher...
by thagrol
Tue Nov 10, 2020 10:31 pm
Forum: General discussion
Topic: Get your youtube-dl before it's too late.
Replies: 45
Views: 2319

Re: Get your youtube-dl before it's too late.

I suspect the problem with the music industry vs artists is deeper and wider than spotify. I also suspect part of the reason for artists getting so little per stream is the record companies wanting their cut. Especially where the artist's contract gives all the rights (and essentially ownership of t...
by thagrol
Tue Nov 10, 2020 8:03 pm
Forum: Beginners
Topic: NAS access from raspberry PI
Replies: 4
Views: 232

Re: NAS access from raspberry PI

Looks from your mount command that root will own the mounted files and directories. Default permissions when mounting CIFS shares set owner and group to that of the user performing the mount and allow writing for only that user. Try this mount command instead: sudo mount -t cifs -o user=alfonso,doma...
by thagrol
Tue Nov 10, 2020 7:56 pm
Forum: Python
Topic: GPIO event detection is not detecting events
Replies: 16
Views: 458

Re: GPIO event detection is not detecting events

2. you need to put a delay in your while true loop like this import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(22, GPIO.IN, pull_up_down=GPIO.PUD_UP) def my_function(channel): print("Button pressed") GPIO.add_event_detect(22, GPIO.BOTH, callback=my_function, bouncetime=300) whil...
by thagrol
Tue Nov 10, 2020 7:50 pm
Forum: General discussion
Topic: Slow transfer speed on rpi4 NAS
Replies: 4
Views: 192

Re: Slow transfer speed on rpi4 NAS

sounds like you are using ntfs on the drives ... use ext4 Doubtful given: HDD is formatted as ext4. Might be the chipset in the USB to SATA adapter. Try disabling UAS via quirks in cmdline.txt. There's a sticky around here somewhere. Something else to consider: Bandwidth between the HDDs and the 4B...
by thagrol
Tue Nov 10, 2020 7:42 pm
Forum: General discussion
Topic: USB-C to micro HDMI video cable
Replies: 8
Views: 448

Re: USB-C to micro HDMI video cable

I would say its a pretty high chance your display have an inbuilt usb videocard. So you should only need a standard USB-A to USB-C cable. But I'm not exactly sure how you will set it up. I'd say the oposite is true. There's a high probability that it uses the USB C alternate mode for video over USB...
by thagrol
Tue Nov 10, 2020 7:27 pm
Forum: General discussion
Topic: Get your youtube-dl before it's too late.
Replies: 45
Views: 2319

Re: Get your youtube-dl before it's too late.

Regards Spotify etc: those who think you shouldn't pay Spotify and all your money should go to the artist only. it costs money to distribute that music you're listening to. If 100% of the money went to the artist/musician, Spotify would very quickly collapse and not be able to continue delivering t...
by thagrol
Tue Nov 10, 2020 10:09 am
Forum: HATs and other add-ons
Topic: Feathering Keyboard
Replies: 6
Views: 315

Re: Feathering Keyboard

Ok now give me actually useful information. I know this is not inherently compatible. Hence asking if it can be MADE compatible and if so what would that entail. Not the first thing that was intended for something else that a raspberry pi got attached to. So again. How do I make this work with a pi...
by thagrol
Mon Nov 09, 2020 5:43 pm
Forum: Python
Topic: How to start .py file from desktop
Replies: 2
Views: 143

Re: How to start .py file from desktop

I have a simple gui .py script I want to start from a desktop icon. I've created a desktop file with the following contents: [Desktop Entry] Version=1.1 Type=Application Encoding=UTF-8 Name=LED Switch Comment=Uses GPIO to turn LED on/off Icon=/home/pi/Pictures/led.jpg Exec=/usr/bin/python3 ./home/p...
by thagrol
Mon Nov 09, 2020 12:56 pm
Forum: Networking and servers
Topic: Raspberry Pi as Wifi Adapter
Replies: 1
Views: 153

Re: Raspberry Pi as Wifi Adapter

I run Linux on mu laptop and require an extra wifi adapter for one to run in managed mode and one in monitor mode. Is there anyway to use the raspi as a Wifi adapter for a laptop. Raspberry Pi 4 Yes but probably not the way you appear to want to. Issues: Power. Can your laptop provide at least 600m...
by thagrol
Mon Nov 09, 2020 12:46 pm
Forum: Troubleshooting
Topic: Getting GPS location SIM800
Replies: 2
Views: 132

Re: Getting GPS location SIM800

I was thinking to buy a gps module , but i think that in this case i would have to 'share' the TX, RX pins some advices on how to do it? With a usb connected gps would be better/easier/possible? GPS is the way to go. Find one that interfaces via USB and identifies as a serial port. As for location ...
by thagrol
Mon Nov 09, 2020 12:25 pm
Forum: Troubleshooting
Topic: connecting external keyboard to headless PI
Replies: 19
Views: 651

Re: connecting external keyboard to headless PI

I really wish you'd handled that reply differently - by putting your response outside the quotation for example. Are you expecting the program started by crontab to accept input from the keyboard? yes Does your program try to read from stdin? no im using input() So your program is using stdin (that'...
by thagrol
Sun Nov 08, 2020 9:24 pm
Forum: Advanced users
Topic: mount.cifs and symlinks
Replies: 17
Views: 539

Re: mount.cifs and symlinks

There is no one correct way for server side symlinks to be displayed on the client, it depends on how rthe server has been configured to handle them and can also depend on whether the point to files outside the shared directory tree. NFS is no different. Not so. NFS is *very* explicit: symlinks are...
by thagrol
Sun Nov 08, 2020 9:13 pm
Forum: Networking and servers
Topic: Can't transfer files from one ntfs drive to another while connected to pi4
Replies: 6
Views: 379

Re: Can't transfer files from one ntfs drive to another while connected to pi4

Thanks I was under the impression that the mounts would be found under media/pi and they were under somewhere else. OMV should have a file manager capability under file systems to do transfers on the local drives and partitions. Perhaps in OMV 6? Anyway in pi OS i am doing a transfer from one ntfs ...
by thagrol
Sun Nov 08, 2020 9:08 pm
Forum: Advanced users
Topic: mount.cifs and symlinks
Replies: 17
Views: 539

Re: mount.cifs and symlinks

What I've just found (in man smb.conf) is that the protocol version used to default to 1.0 but is now negotiated when starting the connection. If I override this negotiation by including "vers=1.0" in the mount.cifs command (mount.cifs //cloud/srv /srv -o cred=???,sec=ntlmv2,mapchars,vers=1.0") the...
by thagrol
Sun Nov 08, 2020 1:36 pm
Forum: Advanced users
Topic: mount.cifs and symlinks
Replies: 17
Views: 539

Re: mount.cifs and symlinks

This is a guess and should be treated as such. It also assume that the "remote drive" is on a linux/unix box and nothing on that box has changed. There could be a difference in the protocol version being requested by the various clients or whether the unix extension to CIFS are being requested and u...
by thagrol
Sun Nov 08, 2020 1:02 am
Forum: Advanced users
Topic: Q on powering Pi0 from Pi400 GPIO
Replies: 34
Views: 1411

Re: Q on powering Pi0 from Pi400 GPIO

I would think the better question is how few wires can be connected for it to work rather than how many. That's easy to answer: two. 5v and ground. Four if you want a serial connection. Can't say for certain that'll work on a 400 but it definitely does with 4B (and earlier B(+) models). Where I'd e...
by thagrol
Sun Nov 08, 2020 12:44 am
Forum: General discussion
Topic: Cannot share folder with Win7...
Replies: 16
Views: 616

Re: Cannot share folder with Win7...

I know I said I wasn't going to respond but... Pretty danged odd about the path "misstatement", but it's all good now... Nothing at all odd about it. The path in the dialog box on the Pi is the local path on the Pi's file system. This is not the path used by clients. When you configure a share in sm...
by thagrol
Sat Nov 07, 2020 6:42 pm
Forum: General discussion
Topic: rpi4 / LAN to Type C converter
Replies: 3
Views: 185

Re: rpi4 / LAN to Type C converter

W. H. Heydt wrote:
Sat Nov 07, 2020 5:39 pm
charamzou wrote:
Sat Nov 07, 2020 9:29 am
can raspberry pi 4 work as LAN to Type C converter without power plugged?
A Pi won't do anything without power coming in *somewhere*.
True enough. Guess I'm guilty of assming power would come in from whatever is on the other end of the USB C cable.
by thagrol
Sat Nov 07, 2020 6:40 pm
Forum: Troubleshooting
Topic: [SOLVED] Unable to write to USB. Wrong permissions?
Replies: 6
Views: 228

Re: Unable to write to USB. Wrong permissions?

Thank you all for the replies. Does anyone have any clue of what could possible be going on? It'll be the mount options. FAT (all types) does not support the concept of ownership. Nor does it support unix/linux style permissions. NTFS has support for ownership and permissions but in a very differen...
by thagrol
Sat Nov 07, 2020 3:02 pm
Forum: Beginners
Topic: External Power & simulatneously using USB-C port
Replies: 9
Views: 455

Re: External Power & simulatneously using USB-C port

The 8086.net boards have arrived so reporting back as promised.

Not tested with a USB C cable between the board and the USB host (win10 PC) but works as expected using a micro USB cable and micro USB to USB C adapter (the one sold for connecting a micro USB PSU to a 4B).

Go to advanced search