LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 04-20-2024, 11:36 AM   #1
Kuuh
LQ Newbie
 
Registered: Apr 2024
Posts: 2

Rep: Reputation: 0
Post As low power consumption as possible linux board


I'm looking forward to buy some boards for some projects, and one that I'm in need is a linux device to run Tailscale (VPN Service) and to be able to WoL my main computer (from afar). As I intend to leave it on at all times, just for that, idk what the best option would be. I don't think a GUI is needed, though I'm not versed enough in linux to CLI everything right easily.

I've come to know that a specific ESP32 is able to run linux, and it would seem the best fit for such a low hardware requirement of a project like that, but idk if it would actually work.

Other options considered are the Pi Zero, as it would work just fine, but it'd be a waste for a board capable of so much more to be left to do just that (Also I do fear it's going to be way too much power hungry, but I'm a complete noob when it comes to linux power management). But it does have HDMI video output, SD card slot, usb ports, it's quite more friendly than just GPIO

I've come to ask if there are any better suggestions or knowledge that would be useful. I hope to finish this project before august
 
Old 04-21-2024, 07:35 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

Welcome to LQ!

Quote:
Originally Posted by Kuuh View Post
I'm looking forward to buy some boards for some projects, and one that I'm in need is a linux device to run Tailscale (VPN Service) and to be able to WoL my main computer (from afar). As I intend to leave it on at all times, just for that, idk what the best option would be. I don't think a GUI is needed, though I'm not versed enough in linux to CLI everything right easily.

I've come to know that a specific ESP32 is able to run linux, and it would seem the best fit for such a low hardware requirement of a project like that, but idk if it would actually work.

Other options considered are the Pi Zero, as it would work just fine, but it'd be a waste for a board capable of so much more to be left to do just that (Also I do fear it's going to be way too much power hungry, but I'm a complete noob when it comes to linux power management). But it does have HDMI video output, SD card slot, usb ports, it's quite more friendly than just GPIO

I've come to ask if there are any better suggestions or knowledge that would be useful. I hope to finish this project before august
You mentioned above about using the Pi zero but to power hungry. How is the proposed board to be powered? The Pi zero will use 2 watts of power from your supply source. You might want to expound on your system design a little more. What is the supply power source? For WoL you might look at this project for some review; https://www.spokenlikeageek.com/2023...rry-pi-zero-w/

When you query the LQ forums please provide as much detail as possible so we can assist with an issue/design.

EDIT: Look at this link for some useful Pi Zero information; https://www.tomshardware.com/features/raspberry-pi-zero

Hope this helps.

Last edited by onebuck; 04-21-2024 at 08:08 AM. Reason: add link for information
 
1 members found this post helpful.
Old 04-21-2024, 07:55 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,321
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
The Raspberry Pi Zero, Zero W, and Zero 2W are wi-fi only unless you add an Ethernet HAT to them. They're about as low as you can get as far as power consumption on a general-purpose computer goes, especially the original Zero and Zero W. The 3A+ has all the Ethernet hardware built-in but consumes more power.

If you need even lower, then you might look at one of the Arduinos, such as the Nano Every. But note that is a microcontroller and not a general purpose computer and that it does not have Ethernet hardware without an Ethernet shield added to it. There might be a way to do that without a breadboard and without soldering ... maybe.
 
Old 04-21-2024, 08:13 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,725

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
Welcome to LinuxQuestions.

The advantage of the PI Zero would be that a Tailscale package is already available for the Pi OS. You can turn off bluetooth which will save some power. I do not think the ESP32 would work for your project.
 
Old 04-21-2024, 09:18 AM   #5
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,499

Rep: Reputation: Disabled
Would a thin client be sufficient(?), they run on low power, are standard Intel/AMD hardware.

Lots are available cheaply on Ebay, ex corporate.
 
Old 04-21-2024, 09:41 AM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,321
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
Quote:
Originally Posted by fatmac View Post
are standard Intel/AMD hardware
thus inherently insecure (Spectre, Spectre2, etc) and electricity hungry. Arm or a microcontroller would be the lowest power and avoid at least the built-in hardware level security holes.

Arm would be easiest but you can go lower with a microcontroller. The tradeoff is that it is a lot more fiddly to get a magic packet out of a microcontroller (e.g. Arduino) than a general purpose computer (e.g. Raspberry Pi).
 
Old 04-21-2024, 11:27 AM   #7
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,499

Rep: Reputation: Disabled
Quote:
electricity hungry
Very low ampage usage, 4~6 usually, less in standby 1~2.
 
Old 04-21-2024, 12:16 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,725

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
Quote:
Very low ampage usage, 4~6 usually, less in standby 1~2.
I have not measured my Pi Zero but there are reports running Pi OS lite headless (no desktop), disabling bluetooth, camera and lowering the frequency is on the order of 115 mA. If Tailscale is a hard requirement and it seems you do not have much experience with SBCs or linux then I am not sure that anything else would work for a lower power device.
 
Old 04-21-2024, 12:37 PM   #9
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,658

Rep: Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708
Usually the core requirement for a network device is adequate resource to manage the maximum bandwidth expected at full speed. Power should normally be a secondary consideration.
Can you say WHY power usage is a consideration for your project?
Understanding the requirement better might prompt better recommendations.
 
1 members found this post helpful.
Old 04-22-2024, 12:00 AM   #10
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,321
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
Re-reading your question again, because of the Tailscale VPN requirement it sounds like you need a general-purpose computer. Also, it seems you would not find working with a micocontroller a productive experience (yet).

In that case I would suggest considering the Raspberry Pi 3B+ for your short list. Or, maybe, even a Raspberry Pi B+. Both have Ethernet for your Wake-on-LAN requirement. Either one can be configured to cut current to unnecessary services (if present) like HDMI, Wi-fi, and Bluetooth for reduced power consumption. Tailscale seems to provide a ready-made, pre-configured package for the Raspberry Pi. So my bet is that it is the easy way for you to go here.
 
1 members found this post helpful.
Old 04-22-2024, 01:13 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,897

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
I think esp32 can run a vpn client and can wake up another host, just you need to build your own software to run on it. (so it is not a full linux distro, but a compiled app). Or probably you can also use micropython. ESP32 can run on battery for a year, but obviously it depends on the code running on it.
From the other hand I assume you have a router, and your main computer is connected to the router.
 
1 members found this post helpful.
Old 04-22-2024, 02:15 AM   #12
Kuuh
LQ Newbie
 
Registered: Apr 2024
Posts: 2

Original Poster
Rep: Reputation: 0
Smile Omg! I couldn't expect this many answers!

First of all, tremendous thanks for your time and support.

My intention is to have a device running 24/7 solely for using Wake on Lan through Tailscale. Tailscale offers a curl installation easily acessible.

(surely would be glad to be able to use the board to control some other devices at my office, such as restarting my router through a relay, for example)

I have some experience with microcontrollers (such as arduino), and am quite used to soldering and basic electronic circuits. Am used to programming as well, but I do lack the knowledge/experience on how to use it to build software. It'd be a steep learning curve for me at the moment, mainly because I'll be building my graduation thesis/project this year. I'm ok with using a terminal to install stuff, but I do rely on automatic installers or tutorials most of the time.

I've gone through my numbers, and a Pi Zero seems to be a nice option for me right now. Idk if I'll grab a Zero, a ZeroW or Zero2W, and a USB lan adapter (or a ENC28J60 lan to gpio board). I may repurpose the device afterwards as a basic NAS with tailscale and the Wake on Lan function, or a media client, idk yet!

2 Watts is prety much low enough power consumption for me to have it running without any worry. I got interested on running this kind of stuff on a microcontroler but more for the amusement than pragmatism, I just thought the Pi would consume way much power. Also, I do not need anything close to a high LAN speed for this board, just the bare minimum to probably SSH into it and send these WoL packets. Surely bandwidth is welcome, as I could use it as an acess point to connect to other devices in my local network, but it's definetly not a priority at the moment.

I may rely on a basic setup for now, and I'm very glad for each answer to this thread. Some of you have joined this forum in 2002! I'm just 23 now and knowing a productive forum like this is still active to this day, after more than 20 years, is something that makes me happy. I'll be ordering my board and components as soon as May comes in. Will get some ESP32 just to toy with (in hopes of having any free time for other projects).

Thanks for welcoming me in

Last edited by Kuuh; 04-22-2024 at 02:18 AM. Reason: Add info about LAN speeds
 
Old 04-22-2024, 07:18 AM   #13
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,338

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
I designed a µcontroller powered device that ran on batteries at <1mA, because I ran it at 32.768KHz. People laughed at me for trying it, but I had the last laugh. It worked perfectly.

You can probably specify a very low clock frequency (arm_freq=20Mhz in /boot/config.txt) and still get faster networking because a pi Zero gets information in 32bit wide chunks and sends it out in serial. Keep going down until things malfunction, or the power stops reducing.

The formula for power consumption is: P(Watts) = ˝C(Farads)V˛F(in Hz). You can't change C or V, but you can change F. The Pi Zero is old, so wafer fab will be large(28nm or maybe 40nm). Get that spec for your thesis. That controls C. If it's possible to reduce Voltage, go after that too. I just have a Pi 4, and reducing voltage is not an option.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
videocard with low power consumption for server WiseDraco Linux - Hardware 32 03-19-2014 12:55 PM
Ideas for a low cost, low power, low noise web server/torrent box alecjtaylor Linux - Hardware 13 01-10-2012 05:26 AM
home storage server question: low power consumption features... Yaniv-Fer Linux - General 7 03-01-2009 02:05 AM
Building or buying a HDD-less server for low power consumption bence8810 Linux - Hardware 2 12-12-2007 06:51 AM
Low power consumption file server? Lordandmaker General 7 04-27-2006 09:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 02:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration