This blog is running on a recycled Google Pixel 5 (2024)

(blog.ctms.me)

152 points | by indigodaddy 7 hours ago ago

66 comments

  • pbd 2 hours ago ago

    The power efficiency is fascinating - modern phones are basically ARM servers optimized for battery life. Pixel 5 probably draws <5W under load vs 50-100W for a typical x86 server. For a personal blog, that's 400-800 kWh/year savings. The environmental impact of reusing vs recycling electronics is under appreciated.

    • SchemaLoad 18 minutes ago ago

      For a static site you can get a lot better by dumping it on S3 or Github Pages. Your site uses 0W while not being used since the server was already running, and it consumes no resource usage while not being requested. But yeah an x86 server at home for a static site is awfully inefficient.

      • tonyedgecombe 14 minutes ago ago

        >Your site uses 0W while not being used since the server was already running

        You are paying for it to be available (or in the case of GitHub Microsoft is as an incentive).

  • BLKNSLVR 5 hours ago ago

    I like the idea of using old phones for infrastructure-lite applications, taking advantage of their low power requirements and built-in UPS (which, yes, has its own drawbacks which can only be mitigated to a certain degree).

    I have a number of old android devices that I'd like to use for ...something cool like this, but my existing homelab infra could just add an extra VM or container to do this without any likely additional power draw. It's still cool and I want to do it though.

    My only query about this cool project is why not wifi? Whilst I'm sure there's a good reason for the author (and I can understand having esoteric specific requirements because I have my own "things"), but it would negate the need for a docking->Ethernet device, which feels to me like unnecessary addition of a device that requires power. Also, bandwidth / throughput probably isn't much of a limitation given the device that's being used. I think I'm mainly interested in the author's specific reason for this requirement (I'm a BA, these questions are my bread and butter).

    Comment to author: Gotta add the Pixel 5 to your homelab inventory! Also, nice site, layout and information.

    • tommica an hour ago ago

      I've had this dream of doing it in Elixir, and use it's capability to easily connect nodes securely together, to add more processing power into the system through by just slapping more phones at it.

    • varenc 4 hours ago ago

      > why not wifi?

      I'm not the author but can speculate. WiFi is higher latency and a bit probabilistic. Like the slowest 1% of requests to the server may take an additional 1000ms or so. And if I was running a blog from a phone I'd want it to be impressively fast. Also an old Android phone may not be able to use modern WiFi standards and it could struggle with the traffic from being on the HN homepage.

    • cinimodev 3 hours ago ago

      Hey, blog author here. Thanks!

      I agree that a VM or container doesn't add to the power usage for a homelab that's already running. I kinda did it for fun and being able to run it off solar. I had original plans to turn the lab off at night and then the phone could keep running from battery. But, the homelab became critical infra and has to be always on lol.

      The requirement for Ethernet was just for bandwidth consistency. My WiFi network isn't the best.

      • _R_ 3 hours ago ago

        On Android devices, it’s generally difficult for apps to maintain persistent background services. I’m curious how you were able to prevent Android from terminating the process, and how the Pixel 5 server managed to keep running?

        • cinimodev 3 hours ago ago

          It runs inside Termux, which has a persistent notification to keep it open in the background. I believe I also extended the max phantom process to prevent it from being killed.

          • leidenfrost 6 minutes ago ago

            Question, why are you glad you didnt go for the PostmarketOS route? Do you think it's not worth it? Or that android is better in any way?

            Just curious

          • indigodaddy 3 hours ago ago

            Is your nginx proxy also caching the site? If so then that is probably contributing to the site stability under the HN load I would think?

    • koolala 2 hours ago ago

      If you have to plug it in anyways, may as well power + ethernet.

      • bigiain 2 hours ago ago

        I laughed at "Having a website that is fully offgrid". I _guess_ not being connected to the electrical grid while still being connected to the internet qualifies as "offgrid", but it kinda feels wrong to me.

        • nine_k an hour ago ago

          Why, consider a device, like a mobile phone, which is not connected to power grid (solar-charged instead) and uses radio to access the Internet (typically 4G). I think it would be as off-grid as it gets. Quite a bit of off-grid equipment, like weather stations, traffic cameras, etc do exactly that.

    • lhamil64 3 hours ago ago

      One issue I have with doing this is what about security? Many older android phones don't get updates anymore (I'm not sure if a Pixel 5 is still supported, it might be) so I'd be concerned about security vulnerabilities going unpatched especially if the phone is exposed to the internet.

      • monkeyelite 2 hours ago ago

        Limit your attack surface by using a simple stack, and limit the incentive for hacking. Countless sites operate just fine on old software.

      • ryukafalz 2 hours ago ago

        This is one of the longstanding issues with Android, yeah. Pixel 5 went EOL in 2023, though did get some extra (probably security) updates last year.

        OEMs and SoC manufacturers have been getting better about upstreaming stuff recently from what I've heard (thank you Qualcomm!), but as far as stock OS images go I wouldn't expect manufacturers to support them for one moment longer than they have to.

        This is part of why efforts like PostmarketOS are so helpful. Ironically, if this was an even older Pixel 3a, you could run it with modern software: https://wiki.postmarketos.org/wiki/Google_Pixel_3a_(google-s...

    • rendaw an hour ago ago

      Are you saying the power required for wifi transmission is lower than the power required for usb?

      Also, what's a BA?

      • BLKNSLVR 17 minutes ago ago

        As per tim (thank you tim), yes, Business Analyst. I ask annoying questions to make sure everyone understands what the actual problem is rather than everyone making their own assumptions where there's ambiguity.

        An additional device just to facilitate wired network usage over wifi usage felt like unnecessary additional complextiy and probably higher power usage. The blog author replied, however, saying that wifi was a bit flaky, explaining the design choice.

      • tim-- an hour ago ago

        I am guessing a business analyst (https://en.wikipedia.org/wiki/Business_analyst). Basically, someone who facilitates creating and communicating stakeholder analysis across a business. The idea is that a BA would have a thorough understanding of everything across a business. Think of them as a product owner in scrum, except there is a bit more overlap working with different parties both internal and external to the business.

        You will likely find a BA (or someone with a similar role under a different name) in most large organisations (and likely in quite a lot of medium ones, too).

    • hugs 3 hours ago ago

      i've been working on an idea for a while to use those idle old phones for... distributed web and app testing. plug it in at night... wake up having made a few bucks.

      problem is getting anyone to really care, though. cloud hosting is cheap.

  • hamdingers 5 hours ago ago

    Pedantry: A _reused_ Google Pixel 5. It was not broken down and reconstituted.

    Reduce, Reuse, Recycle is in order of environmental impact, so reusing is an upgrade!

    • treve 3 hours ago ago

      Recycle is definitely grammatically correct. It's just a different word for re-use.

      • Infinity315 3 hours ago ago

        I thought recycle was the breaking down of the device into its constituents (mostly to recover precious metals or other base materials). In contrast, reuse is where the device is kept mostly intact and used for other purposes such as this. Just breaking things down requires considerable amounts of energy through the sheer logistics of it relative to just reusing it.

      • Clamchop 3 hours ago ago

        Ironically, this is semantics, not grammar.

        • readthenotes1 2 hours ago ago

          How is that ironic? Since the thread is about definitions, I am surprised that we are in a situation where grammar is expected and definitions not

  • mcny 5 hours ago ago

    My number one concern is how do I avoid the spicy pillow problem... If I could have phones run off of USB without a battery, I would love to do that.

    • BLKNSLVR 2 hours ago ago

      My small army of old android devices are plugged into a USB 'charging station' (multiple USB charging ports off a single plastic device) which in plugged into a smart switch. The smart switch turns on for a couple of hours overnight, to keep the phones charged at least minimally.

      Most of the devices also have a custom ROM and are rooted, and using the ACCA app I restrict charging to a maximum of 80% battery capacity.

      I had a Samsung Note 5 (released in 2015) that only went spicy maybe 6 months ago. I have a Samsung S9 and a Nokia 6.1 that are both still going strong with fairly recent versions of LineageOS. Both are 2018 phones, so around 6.5 years old (old for phones, but shouldn't be 'electronically' old).

      • joecool1029 an hour ago ago

        > Most of the devices also have a custom ROM and are rooted, and using the ACCA app I restrict charging to a maximum of 80% battery capacity.

        I used this method too but then LineageOS merged the functionality in a few years ago and it works perfect.

        I have a Nokia 6.1 as well but my oldest continuous use device is a Oneplus 8T used to provide hotspot to a location 24/7/365.

    • daemonologist 3 hours ago ago

      The worst part of the spicy pillow problem is that even if you remove the battery cell and solder a power supply to the BMS, Android will eventually decide "I must be out of battery by now" and shut itself down. You have to root the device to override this and it is supremely annoying.

      Of course if the thing could just run directly off wall power like you suggested, this wouldn't be a problem.

    • chmod775 5 hours ago ago

      https://www.instructables.com/Power-an-Android-Phone-Without...

      You can also buy dummy batteries for certain models online.

    • AuthAuth an hour ago ago

      Put it in a fireproof box and if it dies it dies.

    • cinimodev 3 hours ago ago

      My concern too. I go check on it about once a week. I definitely need to find something safer.

      • joecool1029 an hour ago ago

        Don't run it empty or get it super hot. Gas generation and cell degradation really seems to skyrocket if cells drop below 3V, so don't run them flat. Doesn't seem to ever happen on devices kept on around the clock and powered so long as they aren't in crazy hot conditions.

  • mbasho 4 hours ago ago

    Also impressive: two simultaneous front page posts on HN!

    • indigodaddy 4 hours ago ago

      Oh wow, that is indeed rare I think

  • judge123 5 hours ago ago

    Is a phone plugged in 24/7 actually more power-efficient than a slice of a mega-optimized cloud server?

    • chneu 4 hours ago ago

      Idk about power efficient but it's definitely more resource efficient. Reduce, Reuse, Recycle. Let's really stop fixating on the last one.

    • pharrington 7 minutes ago ago

      Assuming the power management is correctly setup, yes.

    • bb88 3 hours ago ago

      Well, offhand, no one buys a cloud server for power efficiency, people buy into the cloud for reliability, or performance, or cost -- or some combination thereof.

      If you're buying ultra-power, you're forgoing power-efficiency.

      • lmm 24 minutes ago ago

        > no one buys a cloud server for power efficiency, people buy into the cloud for reliability, or performance, or cost -- or some combination thereof

        Low cost and power efficiency are pretty much the same thing for a datacenter though, since cooling is the most expensive part. Hence e.g. AWS pushing Graviton.

    • BLKNSLVR 4 hours ago ago

      It is when it's plugged into a battery which is charged from a solar panel.

  • up2isomorphism 9 minutes ago ago

    Not sure how reliable an old android phone is. You achieve the same thing with an old bad but much better reliability.

  • cinimodev 3 hours ago ago

    So, uh, hi. This is my blog post. I'm just some guy that blogs and gets like 5 reads per post, so I'm a fish out of water here. I didn't even have a HN account until today.

    To answer a some questions: 1. Still running on the Pixel. I never had a reason to change it. 2. It is on a residential internet connection because, well, I never planned on having any volume of readers. 3. I'm just some dude that does random projects at home after work. I'm not even in tech. I actually own a construction contracting biz.

    • BLKNSLVR 2 hours ago ago

      You think like an engineer, so you're in good company here. I had a brief skim of the rest of your blog and there's definitely content that's interesting to me at least, and as I said in a comment above, the site design is beautifully easy to read and navigate. I plan on returning.

      Others seem to agree, given your "I want to be left alone" post also got some HN love.

  • indigodaddy 5 hours ago ago

    Question might be is it still hosted on a phone... DNS resolves to a residential ISP range, and the site seems to be holding up quite well still, so not sure

    • indigodaddy 3 hours ago ago

      Blog author has confirmed that it's still running on the phone. Also it seems to have handled the HN traffic beautifully and without a hitch. Loading extremely fast (as I've been randomly sporadically checking it since it's been on the front page) the whole time. Don't believe there is any CDN involved as the domain resolves to a residential ISP range. Impressive!

    • BLKNSLVR 5 hours ago ago

      Blog was Posted on Aug 29, 2024

      I don't think it would suddenly be hosted on something else in the very few days since.

      Edited to add: I don't think it's hosted via a phone with a SIM, it would appear that the device is connected to their home network.

      Also: Haha, ooops, 2024 (not 2025!)

      • indigodaddy 5 hours ago ago

        Right, connected to the home lan would make sense, especially considering they detailed that it's fronted by nginx on another machine. curl -v does reveal nginx serving. I guess I was thinking maybe a phone wouldn't handle the HN load, but probably a mistaken assumption as it is after all a static site (believe it's Hugo generated html) and Pixel 5 likely has decent CPU and RAM (or at least plenty for static requests probably).

    • smithza 5 hours ago ago

      USB ethernet tether might be the “how” here. Or some sort of VPN (tailscale) to the home LAN that the phone is hooked up to. Not quite “off-grid”.

  • treesknees 5 hours ago ago

    I had a web server running on my jailbroken iPod touch back in 2009/2010. It’s neat but not entirely novel, or practical.

  • chneu 4 hours ago ago

    Anyone else find it kinda funny to have a "fully offgrid" website? That's an oxymoron, right? How can it be off grid if it's literally connected to the grid?

    I understand they're using grid to mean electrical grid, but still funny.

  • UlyssesZhan 2 hours ago ago

    How long can the power bank plus the phone's built-in battery last when the solar panel goes down?

  • Havoc 5 hours ago ago

    Pretty wild how readily available compute has become. Sure not AI level compute but between modern consumer hardware and the mountain of free tier stuff out there I’ve always got more than ability to use it effectively

  • watusername 5 hours ago ago

    Title needs "(2024)". It's been over a year and whether the blog is still running on a recycled Pixel 5 is unclear.

  • kovac 5 hours ago ago

    Impressive. The page loaded very quickly for me here in Singapore. Is it still running on the Pixel?

  • sciencesama 5 hours ago ago

    Can you stresstest it ? How many simultaneous connections can it handle ?

    • indigodaddy 5 hours ago ago

      I'd argue that's happening right now. But we don't know if it's still running on a phone as the post is from September 2024. *Edit, Blog author confirmed it's still running on the phone.

    • chneu 4 hours ago ago

      I'd hope this is proxied thru cloudflare's CDN, lol.

      • tiagod 3 hours ago ago

        It's on a Comcast IP

        • daemonologist 3 hours ago ago

          One unexpected benefit of hosting your blog on a phone: an excellent defense the next time Comcast sends a nasty letter admonishing you for connecting a "server" to your residential internet.

  • daft_pink 5 hours ago ago

    I clicked just so I could experience this! This is awesome!

  • 2OEH8eoCRo0 3 hours ago ago

    I like this. We are surrounded by old phones that are more powerful and energy efficient than a raspberry pi we should use them!

  • busymom0 3 hours ago ago

    Does anyone know if this is possible with an iPhone 6s?