
PM because I'm responding with my systems engineering hat on rather than answering the question and I don't want to take your topic out of the unanswered posts search.My day-job involves a small PC which is a TV device similar to Apple TV, Telstra TV (in Australia) etc. One problem we face is that it will be installed in situations in which power is unreliable and can be lost without warning. This is very much less than ideal but as the PC has solid-state storage, I was thinking to make the file system F2FS rather than EXT4 as it is now. But I don't know if F2FS still caches like EXT4, and if that can be disabled. Then maybe LFS would be more suitable to this application. Can anyone advise?
Code: Select all
init=/sbin/openrc-init
-systemd -logind -elogind seatdI am NaN! I am a man!

No testing and tagging of personal computer and connected equipment power cords are rewired in Australia.wjb wrote:The problem with adding a UPS to a business system is that it generally means additional paperwork is required to cover off safety issues. Depends on the local regs obviously, but I'd be surprised if you could get away with nothing.

Code: Select all
init=/sbin/openrc-init
-systemd -logind -elogind seatdI am NaN! I am a man!
Is power unreliable because the local power company is unreliable, or is it unreliable because you have users who think that abruptly turning off a power strip is a good idea? If the former, solutions posted earlier in the thread look reasonable to me. If the latter, perhaps some user training, in conjunction with some basic hardware mods (like a locked cabinet) to reinforce the lesson, would be viable. Teach users to stop turning off power suddenly, instead of trying to mitigate the consequences.mounty1 wrote:One problem we face is that it will be installed in situations in which power is unreliable and can be lost without warning.
This is common. Not once I've needed to pry out the batteries using something like crowbar or even disassemble the covers of a UPS to get the batteries out. The interesting part is can they leak gas when the rupture happens? I don't have any knowledge on that.figueroa wrote:I've had several sealed lead acid batteries crack and bulge to the point of being able to see the cells. Didn't leak a drop. Maybe they did leak some gas.
Code: Select all
init=/sbin/openrc-init
-systemd -logind -elogind seatdI am NaN! I am a man!
You probably need is very small UPS that replaces the original power supply, plugs into 240Volts wall socket, supplies 12V 3Ah constantly and for a minute or so after power loss. Then sends a shut down signal to to Ubuntu.mounty1 wrote:Thanks for all the replies but I didn't make clear some details of the application.
The device is this which we buy in bulk for about AU$200 each. They are installed in staff accommodation in remote mine camps and the users are FIFO (fly in, fly out) miners who just wanna watch their programming OK. They are fitted behind the TV set and there's no space for a UPS and bearing in mind that these rooms can easily reach 50 degrees Celcius in the daytime, a UPS with its attendant risk of battery leakage (however slight) is a non-starter. There's also the matter of how you mount a relatively heavy and bulky UPS on the wall behind the TV. The PC has a 12 V 3 A power pack so it can theoretically draw 36 W although typically I suppose 20 W. When we install, we are doing so in the 100s or even 1000s so every cost item, including the technician's time in each room, has to be factored-in.
Even a capacitative UPS is a significant complication as we'd need one we could fit inline with the power pack, i.e., has the same coaxial power connections as the PC.
As for power loss, that's out of our control and is just a feature of these remote locations. We have to live with it.
Please don't be one of those tools who unleashes an internet-connected device on the world and never provides updates.szatox wrote:if you don't care about updates
Indeed, and as I've stated, it ain't gonna happen so please can we move on from talk of capacitative UPSs or any other type.steve_v wrote:Really, all this talk of UPS and onboard batteries doesn't sound very productive to me.
Well, it's certainly the laziest solution. Partitioning and a ro root would be more reliable, but if you intend to run bog-standard Ubuntu that's up to you.mounty1 wrote:I reckon the best bet is to turn off all caching on ext4.
If this site is anything like the mining sites I've been involved in, poor power quality and availability is not conjecture at all. It's a complete pain in the ass. As for whether that creates problems for this particular device, the only way to be sure is to try it.figueroa wrote:is this a use-case problem in need of a solution, or conjecture?
Code: Select all
init=/sbin/openrc-init
-systemd -logind -elogind seatdI am NaN! I am a man!
Pretty much exactly what I was just getting at, but betterZucca wrote:Quite related I think.
Indeed. But then almost any mature journaling filesystem choice is fault-tolerant, and comes with an option to force sync writes and/or full journaling in case of an unreliable power supply...Zucca wrote:We're looking for fault tolerant filesystem? Right? After deciding which, then move to maybe mounting it ro and other measures.
If only we did, in which case we could find out whether or not taking additional measures to protect the filesystem from failures at the firmware/hardware level is warranted.Zucca wrote:If we'd only have the specs of that eMMC controller.
Why not use a small smart TV and a wireless keyboard and mouse?mounty1 wrote:Thanks for all the replies but I didn't make clear some details of the application.
The device is this which we buy in bulk for about AU$200 each. They are installed in staff accommodation in remote mine camps and the users are FIFO (fly in, fly out) miners who just wanna watch their programming OK. They are fitted behind the TV set and there's no space for a UPS and bearing in mind that these rooms can easily reach 50 degrees Celcius in the daytime, a UPS with its attendant risk of battery leakage (however slight) is a non-starter. There's also the matter of how you mount a relatively heavy and bulky UPS on the wall behind the TV. The PC has a 12 V 3 A power pack so it can theoretically draw 36 W although typically I suppose 20 W. When we install, we are doing so in the 100s or even 1000s so every cost item, including the technician's time in each room, has to be factored-in.
Even a capacitative UPS is a significant complication as we'd need one we could fit inline with the power pack, i.e., has the same coaxial power connections as the PC.
As for power loss, that's out of our control and is just a feature of these remote locations. We have to live with it.