Go to advanced search

by ghans
Fri May 10, 2019 7:30 pm
Forum: General discussion
Topic: How do I run a Raspbian virtual desktop inside Raspbian?
Replies: 23
Views: 722

Re: How do I run a Raspbian virtual desktop inside Raspbian?

I would rather not use QEMU, mainly because it is meant to simulate non-native machines and CPU architectures. Since I do not wish to simulate a entirely different machine, I see no reason to use QEMU. Please understand the difference between QEMUs TCG "accelerator" and QEMU with KVM acceleration. ...
by ghans
Fri May 10, 2019 7:31 am
Forum: General discussion
Topic: How do I run a Raspbian virtual desktop inside Raspbian?
Replies: 23
Views: 722

Re: Can I have a Raspbian virtual machine on Raspbian?

QEMU supports KVM acceleration. This way, you can run Raspbian or Windows 10 Pro (AARCH64) "inside" Gentoo.

For perfomance reasons, you should only try it on the Raspberry Model 3B+. Search for the posts of forum member "sakaki".

ghans
by ghans
Wed May 08, 2019 10:41 am
Forum: General discussion
Topic: Another litecoin mining question.
Replies: 2
Views: 88

Re: Another litecoin mining question.

Use "tmux" or "screen". Start tmux or screen, and then start your mining software inside the new session. You can now "detach" from this screen/tmux session and "reattach" at any later time. Even if your Internet connection gets lost, the session will continue to run uninterrupted allowing you to ma...
by ghans
Mon May 06, 2019 9:21 am
Forum: Beginners
Topic: Home networking
Replies: 3
Views: 268

Re: Home networking

Without detailed information on the CCTV system i can't help you. But i believe in your current situation you will need one Raspberry per TV, not one for both.

ghans
by ghans
Fri May 03, 2019 6:42 am
Forum: Beginners
Topic: Home networking
Replies: 3
Views: 268

Re: Home networking

Please answer following questions: 1) How many TVs are "Smart TVs" ? 2) How many TVs are in close cable "proximity" to the switch (current wiring + future wiring) ? 3) How many TVs are in close proximity to the switch when connected wirelessly ? 4) What is the manufacturer, model name and spec sheet...
by ghans
Fri May 03, 2019 6:26 am
Forum: General programming discussion
Topic: I want to do this, what programming languages and libraries do I need to know?
Replies: 10
Views: 495

Re: I want to do this, what programming languages and libraries do I need to know?

If you do not know any programming language, Python is a good start. If you actually are fluent in any other programming language, why don't you use it on the Pi ? Chances are it works already.

ghans
by ghans
Tue Apr 30, 2019 1:56 pm
Forum: Bare metal, Assembly language
Topic: Run Raspbian on 3 cores, Arduino-ish on fourth core?
Replies: 13
Views: 707

Re: Run Raspbian on 3 cores, Arduino-ish on fourth core?

The most advanced Raspberry/Pseudoduino project i remember is this one: https://github.com/me-no-dev/RasPiArduino BUT it does NOT run on bare metal - it runs on top of Linux ! I believe what you want is probably impossible without writing a "Raspberry Pseudoduino" "standard library" from scratch. Ho...
by ghans
Wed Apr 24, 2019 10:52 am
Forum: Raspbian
Topic: Future of the Raspberry Desktop
Replies: 13
Views: 609

Re: Future of the Raspberry Desktop

The work on the "proper" DRM/Mesa3D stack was started in 2014 - that means accelerated desktop environments were dysfunctional for quite some time and are just now starting to work out-of-the-box. Just choose "Enable/Disable experimental desktop GL driver" in raspi-config. Any accelerated desktop en...
by ghans
Fri Mar 29, 2019 8:53 am
Forum: Other
Topic: Running two different OS at the same time
Replies: 19
Views: 2089

Re: Running two different OS at the same time

QEMU+KVM should make this possible.

https://github.com/sakaki-/gentoo-on-rp ... -under-KVM

ghans
by ghans
Thu Mar 14, 2019 5:37 pm
Forum: Advanced users
Topic: Is it reliable to backup Raspi from remote?
Replies: 23
Views: 985

Re: Is it reliable to backup Raspi from remote?

The official SD Card Copier does not use dd because of this exact issue. It uses "cp" instead. In line with this, i would suggest using rsync to backup your Pi. rsync can transfer data over network by itself and also can be used over SSH for convenience. Obviously, i can't guarantee it works if both...
by ghans
Mon Mar 11, 2019 6:21 am
Forum: Raspbian
Topic: Large partition sizes, Raspbian and Windows
Replies: 49
Views: 2010

Re: Large partition sizes, Raspbian and Windows

Buy an USB SD card reader and a second SD card. Plug both into your running Pi.
Use the SD card copier. Use gparted to increase the size of the first partition.

Now you can use the second SD card on Windows and Linux.

ghans
by ghans
Tue Feb 26, 2019 6:23 am
Forum: Beginners
Topic: Raspberry Pi ADC Sampling Rate
Replies: 6
Views: 321

Re: Raspberry Pi ADC Sampling Rate

Inserting print statements into a tight loop is a universally bad idea. It will always lead to slowdown, but of course using Python + Raspberry Pi isn't going to help.

ghans
by ghans
Tue Feb 26, 2019 6:16 am
Forum: Device Tree
Topic: How to safely exit my program before KEY_POWER shutdown?
Replies: 6
Views: 809

Re: How to safely exit my program before KEY_POWER shutdown?

You need to write a signal handler for your program. SIGTERM is the one you should take care of first.

ghans
by ghans
Mon Feb 25, 2019 1:08 pm
Forum: Graphics, sound and multimedia
Topic: Read Audio Jack Output
Replies: 3
Views: 783

Re: Read Audio Jack Output

1) Use ALSA. I think you need to configure a plugin/module called "loopback". 2) Use PulseAudio, which is built on top of ALSA. I think you want to add a "null sink" and record from it. PulseAudio is supposedly more powerful - never had to configure it by hand, so cannot confirm or deny. Configuring...
by ghans
Sun Feb 17, 2019 9:57 am
Forum: Advanced users
Topic: Which Rasp for "pro" project?
Replies: 14
Views: 957

Re: Which Rasp for "pro" project?

You're supposed to design the motherboard yourself. The final size depends on your
skills and/or budget.

You can also order completely custom Raspberry Pis from element14. But their minimum order quantity is 3000-5000 units plus NRE costs.

ghans
by ghans
Tue Feb 12, 2019 8:05 am
Forum: General programming discussion
Topic: Controlling 100 LED's over TCP/IP between two Pi's
Replies: 8
Views: 961

Re: Controlling 100 LED's over TCP/IP between two Pi's

pigpio already supports remote control over a network. That might be easier than writing network code yourself.

ghans
by ghans
Mon Feb 11, 2019 6:32 am
Forum: Deutsch
Topic: Weswegen sollte ich den Pi User nutzen?
Replies: 5
Views: 816

Re: Weswegen sollte ich den Pi User nutzen?

Die Begründung für sudo ist die selbe wie für UAC unter Windows: ein Plus an Sicherheit. Die Existenz von root ist dem Administrator-Account unter Windows gleichzusetzen. Ein bösartiges Programm oder ein dummer Fehler kann dir dann das gesamte System zerschießen, wenn du die ganze Zeit als Admin/roo...
by ghans
Fri Feb 01, 2019 7:32 am
Forum: General discussion
Topic: understanding regulator frame work
Replies: 4
Views: 292

Re: understanding regulator frame work

Those APIs won't work. The firmware, not Linux, is in control of the PMIC (MXL7704) on the latest models (3B+, 3A+). Older models don't have a PMIC at all, they have fixed-voltage regulators.

ghans
by ghans
Thu Jan 24, 2019 7:47 am
Forum: General programming discussion
Topic: Creating a custom UI to boot up?
Replies: 5
Views: 854

Re: Creating a custom UI to boot up?

Which programming languages do you know ? Either way, booting is not instantaneous.
You probably want to play with the splashscreen settings ("plymouthd.conf") or code your own.

ghans
by ghans
Tue Jan 22, 2019 7:45 am
Forum: Beginners
Topic: Convert Audio/Video data through USB into binary stream at gpio pin
Replies: 3
Views: 179

Re: Convert Audio/Video data through USB into binary stream at gpio pin

For video, study the V4L2 API. For audio, study the ALSA API.

Please note those APIs are only directly exposed to C. For Python you will need wrappers
(multiple exist).


ghans
by ghans
Tue Jan 22, 2019 7:37 am
Forum: General discussion
Topic: MJPEG video
Replies: 3
Views: 239

Re: MJPEG video

The Raspberry Pi h.264 hardware video encoder does not support 4K. Running at full HD (1080 × 1920) is the maximum.

MJPEG doesn't seem to have the same restrictions.

ghans
by ghans
Tue Jan 22, 2019 7:23 am
Forum: Graphics programming
Topic: Best way to render video inside my program?
Replies: 7
Views: 1163

Re: Best way to render video inside my program?

Most likely, the easiest way is using omxplayer from your program. omxplayer allows control and querying via the MPris2 protocol.

ghans
by ghans
Sat Jan 19, 2019 10:07 am
Forum: Advanced users
Topic: Virtual com port drivers?
Replies: 9
Views: 814

Re: Virtual com port drivers?

Those devices are created by "udev". USB devices become plug-and-play thanks to udev, too.

ghans

Go to advanced search