Go to advanced search

by jojopi
Thu Jan 18, 2018 2:53 pm
Forum: Advanced users
Topic: the key g (0x0a) does not work for USB HID gadget
Replies: 1
Views: 72

Re: the key g (0x0a) does not work for USB HID gadget

Why are you using bash? My guess is that the combination of shell redirection and echo -ne is causing the output to be line-buffered. \x0a is also the newline character \n, so the rest of the string is another line. Kernel device drivers and other pseudo files expect to get your complete request as ...
by jojopi
Thu Jan 18, 2018 11:59 am
Forum: Beginners
Topic: Internal pull up/down function explanation
Replies: 16
Views: 409

Re: Internal pull up/down function explanation

You can measure the effect of the internal pulls on an output. If you drive a GPIO low but also load it to 3.3V with 330Ω, that gives about 300mV at the pin. Now you should see at least 1mV difference between each of the internal pull up, no pull, and pull down states. The level registers always rea...
by jojopi
Wed Jan 17, 2018 12:33 pm
Forum: Troubleshooting
Topic: Removing Kernel Warning
Replies: 11
Views: 321

Re: Removing Kernel Warning

That message is considered an error, not a warning, and you asked for loglevel=3. You can decrease that further if you do not even want errors to go to console: loglevel= All Kernel Messages with a loglevel smaller than the console loglevel will be printed to the console. It can also be changed with...
by jojopi
Wed Jan 17, 2018 11:19 am
Forum: Beginners
Topic: Internal pull up/down function explanation
Replies: 16
Views: 409

Re: Internal pull up/down function explanation

You cannot use internal pulls on an output. You can configure internal pulls regardless of whether the pads are set as input, output, or alternate function. The pulls stay in circuit even when they are competing with the output drivers, though obviously they make next to no difference in that case....
by jojopi
Mon Jan 15, 2018 4:34 pm
Forum: Troubleshooting
Topic: Can't view man pages
Replies: 3
Views: 59

Re: Can't view man pages

teytur wrote:
Mon Jan 15, 2018 2:23 pm
/home/pi/bin/man: 1: /home/pi/bin/man: Syntax error: ")" unexpected]
You have created a file /home/pi/bin/man (apparently full of erroneous syntax), and it is taking precedence over the system utility /usr/bin/man.
by jojopi
Mon Jan 15, 2018 8:08 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: Think I’ve nailed the Raspi Boot Loop bug
Replies: 13
Views: 446

Re: Think I’ve nailed the Raspi Boot Loop bug

I am not sure that Fake_News even has a Pi. His previous thread about boot issues was regarding the Foundation's x86-32 live image.

Branding seems to be really important these days. You cannot just explain a problem; it has to be "Raspi Boot Loop" or "Shellshock".
by jojopi
Mon Jan 15, 2018 7:54 am
Forum: Beginners
Topic: In which order does a Python Program run
Replies: 18
Views: 484

Re: In which order does a Python Program run

You need to identify the entry point. In C and C++ it's some variation of Main(), in Python and Basic it's whatever you come to after initial imports, declarations and definitions. In Python, the entry point is always the top of the file! Even "from module import just_one_thing" executes the whole ...
by jojopi
Sun Jan 14, 2018 12:03 pm
Forum: Beginners
Topic: In which order does a Python Program run
Replies: 18
Views: 484

Re: In which order does a Python Program run

I found the initial query about order of execution confusing because, in almost any language, the answer is that the program runs from the top to the bottom. Except obviously as modified by flow control statements, procedure and function calls, imports, exceptions, threads, etc. However, the mention...
by jojopi
Sat Jan 13, 2018 1:03 pm
Forum: General discussion
Topic: When will Raspberry Foundation admit that the Pi destroys your SD cards?
Replies: 66
Views: 2702

Re: When will Raspberry Foundation admit that the Pi destroys your SD cards?

To those who claim to run 24/7 without issues: I'm pretty sure your use-cases are not really write-heavy, am I right? If you acknowledge that the problems result from heavy writing, then I do not see how it could be the Raspberry Pi "boards" that are at fault, as opposed to the software you were ru...
by jojopi
Sat Jan 13, 2018 1:35 am
Forum: Python
Topic: Attribute error in python 3
Replies: 4
Views: 154

Re: Attribute error in python 3

Where did you get the code from? After the "class MrBit_QTR_8RC:" line, each of the next ten "def method (self…):" lines should have been indented four characters so that they belong to the class. (The bodies of those definitions are already indented eight characters to make room.) Because your defi...
by jojopi
Wed Jan 03, 2018 8:37 pm
Forum: General discussion
Topic: Chip architecture - is the Pi vulnerable?
Replies: 46
Views: 2926

Re: Chip architecture - is the Pi vulnerable?

Paul Webster wrote:
Wed Jan 03, 2018 5:51 pm
probably should have been
"they are are not likely to have implemented the same bug"
I suspect the second "are" was a substitute for the "not"/"un-", rather than there being both an extra word and a missing one.
by jojopi
Wed Jan 03, 2018 12:56 pm
Forum: Troubleshooting
Topic: When are Predictable Network Interface Names Assigned? - Stretch
Replies: 19
Views: 1680

Re: When are Predictable Network Interface Names Assigned? - Stretch

The idea is that when I plug a USB-ethernet adapter into a Pi it gets an interface name derived from it's MAC address? That has been disabled by default. You are months too late to join the ranting about it. What would be useful would be if the interface name (or serial port name) was derived from ...
by jojopi
Wed Jan 03, 2018 4:22 am
Forum: Troubleshooting
Topic: GKSU cannot open display
Replies: 2
Views: 108

Re: GKSU cannot open display

The title mentions GKSu, but the transcript shows plain sudo.

Did you try "gksudo gparted" ?
by jojopi
Tue Jan 02, 2018 11:25 am
Forum: General discussion
Topic: OTB Bit Has Not Been Programmed - but it has! ???
Replies: 9
Views: 399

Re: OTB Bit Has Not Been Programmed - but it has! ???

I think the error message is telling you that the OTP bit cannot be programmed -- because it already has been! The bit is programmed by the GPU firmware early in the boot sequence. Where would such an error appear? The documented method for checking the bit is "vcgencmd otp_dump |grep 17:". This si...
by jojopi
Sun Dec 31, 2017 11:35 pm
Forum: Advanced users
Topic: Maximum current and voltage through the 40 pins before damage?
Replies: 11
Views: 416

Re: Maximum current and voltage through the 40 pins before damage?

GPIO's configured as outputs, but outputting a '0' don't either, […] Only if they actually source a current into a load they do. So we can sink 16mA into each of the 28 GPIOs driven low, for a total of 0.458A? No, I suspect there will be similar limits for sinking and sourcing. It may be slightly b...
by jojopi
Sun Dec 31, 2017 1:02 pm
Forum: General discussion
Topic: Syntax error on import time
Replies: 17
Views: 564

Re: Syntax error on import time

2. Idle – Run Config – have created new folder Test_Sen and changed name of file Test_Two.py, but the test still goes to RPi.py as before, is there a preferred method of creating new directory? This does seem to be another Idle quirk. Normally a local file will override a system module only if it i...
by jojopi
Sat Dec 30, 2017 9:40 pm
Forum: Troubleshooting
Topic: Password
Replies: 12
Views: 374

Re: Password

You can try to launch a (second) GUI using:

Code: Select all

startx -- :1
Presumably this will fail. (If you could launch a session you should be able to log in using the existing GUI, and anyway autologin would be working on boot.)

Maybe the error messages will help point to the problem.
by jojopi
Sat Dec 30, 2017 9:32 pm
Forum: General discussion
Topic: Syntax error on import time
Replies: 17
Views: 564

Re: Syntax error on import time

File "/home/pi/Desktop/RPI3.py", line 1, in <module> import RPi.GPIO as GPIO ## Import GPIO Library File "/home/pi/Desktop/RPi.py", line 2 >>> import time ^ SyntaxError: invalid syntax The extra ">>>" are the file Desktop/RPi.py. This is not the file you are running. You are importing it by acciden...
by jojopi
Sat Dec 30, 2017 3:58 pm
Forum: Troubleshooting
Topic: Password
Replies: 12
Views: 374

Re: Password

I have used the default password "Raspberry" and it takes it, screen goes blank and then the login in reappears. Then the password is correct, but something is stopping the GUI session from launching. It may just be that the root filesystem is full. Switch to text mode with Ctrl+Alt+F2 and log in t...
by jojopi
Sat Dec 30, 2017 12:04 pm
Forum: Troubleshooting
Topic: Permission denied to the Rapsberry Pi (unable to do anything)
Replies: 10
Views: 428

Re: Permission denied to the Rapsberry Pi (unable to do anything)

The pictures are not identical, and I do not see how this could possibly be spam. Clearly both posters have very similar stuff added to rc.local, though. Maybe this is the result of a compromise, as suggested in the original post. If you do not recognise why the system is attempting to run ssh at bo...
by jojopi
Fri Dec 29, 2017 9:09 pm
Forum: General discussion
Topic: Syntax error on import time
Replies: 17
Views: 564

Re: Syntax error on import time

File "/home/pi/Desktop/RPi.py", line 2 >>> import time ^ SyntaxError: invalid syntax There are three greater-than signs at the start of the line. ">>> import time" is a syntax error. I understand this problem can arise if you type your commands into an interactive IDLE3 window, and then save the tr...
by jojopi
Fri Dec 29, 2017 7:38 pm
Forum: Troubleshooting
Topic: Autocompletion doesn't work with LX Terminal
Replies: 2
Views: 104

Re: Autocompletion doesn't work with LX Terminal

This is nothing to do with LXTerminal. Have you created your own user account? It sounds like you are using /bin/sh (dash) as your login shell, instead of /bin/bash. dash is more intended for running shell scripts; it is not great for interactive use. You can change shell with the "chsh" utility (wh...
by jojopi
Tue Dec 26, 2017 1:14 pm
Forum: Troubleshooting
Topic: Fail to start /etc/rc.local
Replies: 10
Views: 441

Re: Fail to start /etc/rc.local

if [ “$_IP” ]; then printf “Connect to Deluge via http://%s:8112 (Without the space)\n” “$_IP” As posted, that uses Unicode left and right quotation marks. Make sure you have ASCII quotation marks in the actual file, otherwise you have unprotected parentheses, which is a syntax error. However: Dec ...
by jojopi
Mon Dec 25, 2017 12:33 am
Forum: General discussion
Topic: Password incorrect immediately after changing it
Replies: 9
Views: 376

Re: Password incorrect immediately after changing it

Should I just go back to using the command-line "passwd" command instead of the desktop preferences app? No, but always prefer raspi-config over GUI methods for setting the keyboard layout. raspi-config sets the system default layout. GUI methods often apply only to the logged in user. Test your ke...
by jojopi
Sun Dec 24, 2017 2:59 pm
Forum: C/C++
Topic: stretch wiringpi
Replies: 24
Views: 768

Re: stretch wiringpi

pi@RPiHal:~/Develop/C $ gcc adrian.c –lwiringPi -o adrian gcc: error: –lwiringPi: No such file or directory You used an en-dash instead of a hyphen-minus. pi@RPiHal:~/Develop/C $ gcc adrian.c -lwiringPiDev -o adrian adrian.c:(.text+0x1fc): undefined reference to `wiringPiSetup' You asked for wiring...

Go to advanced search