Go to advanced search

by bedtime
Wed Nov 17, 2021 3:05 am
Forum: Bare metal, Assembly language
Topic: Beginner with Pi 4
Replies: 14
Views: 864

Re: Beginner with Pi 4

I don't have a mini HDMI to hdmi adapter to check if it could run on a monitor. https://thepihut.com/products/micro-hdmi-to-standard-hdmi-a-cable I must be the world's biggest masochist, but I went out and bought an HDMI to VGA adapter at the Source, and now I'm on my RPi 3b+. I just need to get a ...
by bedtime
Tue Nov 16, 2021 9:02 pm
Forum: Bare metal, Assembly language
Topic: Beginner with Pi 4
Replies: 14
Views: 864

Re: Beginner with Pi 4

Installed it, but it's too buggy to even consider for me. It needed to be powered directly to get enough power to boot, which means I can't use my batteries to power it. And then it wouldn't start openbox. It just froze and sat there. I installed awesome, and it opened it the first time. Then I log...
by bedtime
Tue Nov 16, 2021 7:43 pm
Forum: Bare metal, Assembly language
Topic: Beginner with Pi 4
Replies: 14
Views: 864

Re: Beginner with Pi 4

64-bit OS has been in beta for a long time. I wouldn't hold your breath. Personally, I've found the previous Buster 64-bit beta to be very stable and usable. Started testing Bullseye64 and it's been okay. A few problems, but nothing game breaking (for me). You should give it a try. Installed it, bu...
by bedtime
Tue Nov 16, 2021 5:55 pm
Forum: Bare metal, Assembly language
Topic: Beginner with Pi 4
Replies: 14
Views: 864

Re: Beginner with Pi 4

I think I'm going to wait to install the 64-bit OS... Probably easiest for me to just relax until the 64-bit version is out of beta. 64-bit OS has been in beta for a long time. I wouldn't hold your breath. Personally, I've found the previous Buster 64-bit beta to be very stable and usable. Started ...
by bedtime
Sun Nov 14, 2021 11:41 pm
Forum: Bare metal, Assembly language
Topic: Beginner with Pi 4
Replies: 14
Views: 864

Re: Beginner with Pi 4

Okay, I've followed this tutorial and got it going on my x86 install: https://azeria-labs.com/arm-on-x86-qemu-user/ Have to say, ARM64 Assembly looks pretty sweet! :P https://i.ibb.co/ZGH834M/Screenshot-from-2021-11-14-17-58-29.png To save time, I made a little script that allows one to edit, compil...
by bedtime
Sun Nov 14, 2021 9:11 pm
Forum: Bare metal, Assembly language
Topic: Beginner with Pi 4
Replies: 14
Views: 864

Re: Beginner with Pi 4

You need to install a 64-bit OS to use such a learning resource on the Pi. In particular, the vendor-supplied Raspberry Pi OS runs in 32-bit compatibility mode. Thanks for the quick response! Yep, I confirmed it. I'm on 32 bit. Sigh . Thanks for letting me know this. Saved me a lot of frustration. ...
by bedtime
Sun Nov 14, 2021 7:02 pm
Forum: Official Display
Topic: Touchscreen not properly selecting text in chromium
Replies: 1
Views: 219

Re: Touchscreen not properly selecting text in chromium

Goto Chrome://flags

Search for 'touch'

Goto 'unavailabe'

You'll see a drag and drop and a text selection flag, which you need but are not available for your platform.

Proceed to pull your hair out.
by bedtime
Sun Nov 14, 2021 6:40 pm
Forum: Bare metal, Assembly language
Topic: Beginner with Pi 4
Replies: 14
Views: 864

Beginner with Pi 4

There are so many resources out there that it can be confusing where to start. I tried the code in the book, Programming with 64-Bit ARM Assembly Language by Stephen Smith, and it appears that this code won't compile on my Pi 4b. That said, I'd like a book that teaches 64 bit ARM Assemby from the ve...
by bedtime
Sat Nov 13, 2021 11:23 pm
Forum: Networking and servers
Topic: Wifi slow to turn on and connect
Replies: 6
Views: 245

Re: Wifi slow to turn on and connect

Wifi still takes 15-30 seconds to power on and connect. Is this a reasonable time? it's seems like it's kinda slow to me as well, i'm using the desktop version & sometimes after a reboot it takes awhile to connect. i haven't really looked into it and now is the weekend so i'm drinking, just not...
by bedtime
Sat Nov 13, 2021 4:59 am
Forum: Networking and servers
Topic: Wifi slow to turn on and connect
Replies: 6
Views: 245

Re: Wifi slow to turn on and connect

Wifi still takes 15-30 seconds to power on and connect. Is this a reasonable time? it's seems like it's kinda slow to me as well, i'm using the desktop version & sometimes after a reboot it takes awhile to connect. i haven't really looked into it and now is the weekend so i'm drinking, just not...
by bedtime
Sat Nov 13, 2021 3:07 am
Forum: Networking and servers
Topic: Wifi slow to turn on and connect
Replies: 6
Views: 245

Re: Wifi slow to turn on and connect

doing some quick testing i'm using wpa_cli -i wlan0 reassociate in my autostart Thanks for this. I ran it with #!/bin/sh #ifup -a --read-environment ifconfig wlan0 up iwconfig wlan0 txpower auto dhcpcd -q -b wpa_cli -i wlan0 reassociate #wpa_cli -i wlan0 reconnect Wifi still takes 15-30 seconds to ...
by bedtime
Sat Nov 13, 2021 12:21 am
Forum: Networking and servers
Topic: Wifi slow to turn on and connect
Replies: 6
Views: 245

Wifi slow to turn on and connect

Wifi is taking around 30 seconds to turn on and connect to the net. Sometimes up to a minute or longer. I'd rather not use systemd to connect it, as I want to turn it on only when I want it on to save power. Here are my scripts: wifi-on.sh: #!/bin/sh ifup -a --read-environment iwconfig wlan0 txpower...
by bedtime
Fri Nov 12, 2021 2:58 am
Forum: Networking and servers
Topic: Waiting for net to connect in sudo script
Replies: 2
Views: 148

Re: Waiting for net to connect in sudo script

Try enabling the wait for network on boot option in sudo raspi-config That's a good idea, but I'd rather not use systemd or turn it on by default. I've configured the wifi to power on and connect only when I run the script. This is to save power as I'm running on batteries. I should note that my us...
by bedtime
Fri Nov 12, 2021 2:01 am
Forum: Networking and servers
Topic: Waiting for net to connect in sudo script
Replies: 2
Views: 148

Waiting for net to connect in sudo script

How can I wait for the wifi to make a connection before executing the next command? The script I'm running keeps skipping over the net check. I'm assuming it just ending in error with the net check as the net seems to make a connection instantly, and in reality it's not connected. The net will howev...
by bedtime
Wed Nov 10, 2021 11:49 pm
Forum: General discussion
Topic: Video: my touch-based pi setup
Replies: 4
Views: 259

Re: Video: my touch-based pi setup

I'm afraid I've not done this system justice, as it was a huge pain filming this. I had to hold the camera with one hand and try to press the screen in the dark with my other hand. That's what tripods are for. Yeah, yeah, I know... :roll: I remember talking to you about battery power. Good to see y...
by bedtime
Sun Nov 07, 2021 6:57 pm
Forum: Official Display
Topic: Touchscreen not properly selecting text in chromium
Replies: 1
Views: 219

Touchscreen not properly selecting text in chromium

When I try to select text—to copy it—from the screen, only the first word is selected. I'm not able to drag the drag pins on the screen to select more text. I can, however, press shift+up/down on my virtual keyboard to select other lines, but that can be quite trying when there are several dozens of...
by bedtime
Fri Nov 05, 2021 11:20 pm
Forum: General discussion
Topic: Video: my touch-based pi setup
Replies: 4
Views: 259

Video: my touch-based pi setup

The setup is a Pi 4b with the official 7" touchscreen. The OS is Raspbian and the window manager is openbox. Virtual keyboard is Suckless svkbd. The menu, panel, notifications, and reading program I made in C using the xlib libraries. There is a program running in the background which resizes t...
by bedtime
Mon Nov 01, 2021 1:26 pm
Forum: General discussion
Topic: Manually setting auto-login (SOLVED)
Replies: 0
Views: 108

Manually setting auto-login (SOLVED)

I've been trying to get raspbian to automatically log into openbox without a password. I also don't want to use gdm or lightdm to do it. Generally, this would be an easy task, but it seems I've likely deleted some info which allows it to happen; namely, shell files. Mksh is my default shell for user...
by bedtime
Thu Oct 28, 2021 3:35 pm
Forum: General discussion
Topic: The Raspberry Pi Zero 2 W Thread
Replies: 388
Views: 25301

Re: The Raspberry Pi Zero 2 W Thread

Anyone know if the Pi Zero 2W can be used with the official 7" Rpi touchscreen? If so, would the GPII need to be used?
by bedtime
Sat Jun 19, 2021 12:57 am
Forum: Advanced users
Topic: Turning on wifi after it's been turned off
Replies: 4
Views: 430

Re: Turning on wifi after it's been turned off

epoch1970 wrote:
Fri Jun 18, 2021 1:19 pm
Dunno. Does the overlay do that?
I'm quite sure that the overlay command shuts it off, but I'm not sure about an rfkill command.
by bedtime
Fri Jun 18, 2021 2:46 pm
Forum: Official Display
Topic: How to switch initial brightness?
Replies: 5
Views: 1492

How to switch initial brightness?

Is there away that the brightness of the screen can be changed earlier in the boot process? I'd like to lower the brightness or even have the screen off until it is fully booted.
by bedtime
Fri Jun 18, 2021 1:16 pm
Forum: Advanced users
Topic: Turning on wifi after it's been turned off
Replies: 4
Views: 430

Re: Turning on wifi after it's been turned off

Perhaps you can leave the device enabled and set rfkill on an off instead? Or see if an interactive "dtoverlay" command can be used in this case to override the working device with disable-wifi, and back again. https://www.raspberrypi.org/documentation/configuration/device-tree.md Would u...
by bedtime
Fri Jun 18, 2021 1:16 pm
Forum: Advanced users
Topic: How to: Reduce halt/poweroff power usage (NEEDS VERIFICATION!)
Replies: 2
Views: 416

Re: How to: Reduce halt/poweroff power usage (NEEDS VERIFICATION!)

The real way is to control the mxl7704 regulator properly. I developed a power switch circuit that goes onto the global_en and shut down the regulator so only 10 micro amps (10uA) of current is drawn after the power led is turned off in raspi-config. It does require soldering skills, as you have to...
by bedtime
Thu Jun 17, 2021 5:27 pm
Forum: Advanced users
Topic: How to: Reduce halt/poweroff power usage (NEEDS VERIFICATION!)
Replies: 2
Views: 416

How to: Reduce halt/poweroff power usage (NEEDS VERIFICATION!)

:!: DO NOT RUN THIS SCRIPT UNLESS YOU KNOW WHAT YOU'RE DOING!!! :!: Read all the info in both links and decide for yourself if this is your lucky day. You've been warned. ... Using the links below... https://raspberrypi.stackexchange.com/questions/114422/what-is-the-minimum-power-required-for-an-rpi...
by bedtime
Thu Jun 17, 2021 3:45 pm
Forum: Advanced users
Topic: Turning on wifi after it's been turned off
Replies: 4
Views: 430

Turning on wifi after it's been turned off

To save on battery life, I want my RPI 4b to boot with the wifi turned off (i.e., powered off at the hardware level) via /boot/config.txt: dtoverlay=disable-wifi (this code works perfectly) ...but I'd then like to be able to turn it back on without having to edit the config.txt file again and reboot...

Go to advanced search