Car Media Server: Power Management Strategy












1















Got my mobile media server working in my car, but now I need to figure out how to get it to hibernate when the car turns off and wake when the car turns back on.



HARDWARE SETUP



             COMPUTER: Dell Inspiron 1545 laptop
WIRELESS ACCESS POINT: USB-powered Vonets VAR11N-300 miniature router
OPERATING SYSTEM: Ubuntu 16.04 LTS
MEDIA APPLICATION: Plex Media Server


I wiped the old laptop, installed Ubuntu and Plex, then loaded movies on the hard drive. Bought an external power supply for the laptop that plugs into a vehicle cigarette lighter socket. The internal wireless card on the laptop is too limited to act as an access point, so I found a tiny, USB-powered router that could be configured as a wireless access point. All the components nicely fit into a storage compartment area next to the tire jack. I tested it on my road trip to Banff National Park and the kids were able to use the Plex client app to watch movies streamed from the mobile media server on their mobile devices.



The only problem I have is that when I turn off the car the laptop switches to internal battery power and keeps running until it dies. I would like the laptop to wait a few minutes after the external power drops off and then go into hibernation. I would also like the laptop to come back out of hibernation once the car is turned back on.



What would be the best strategy for handling power management services in this situation?










share|improve this question























  • For hibernating when the external power is removed, you can set it to hibernate on low battery in the power management settings, and you can also set what low battery means, so you could e.g set it to hibernate when the battery is at 90%. I believe you need dconf-editor for this. There are also many other ways to achieve this, e.g. using power management hooks, to run the hibernate command. For coming out of suspend when the power is connected again - this is generally not possible, since the BIOS would need to support it, and most don't.

    – JonasCz
    Jul 3 '16 at 7:05


















1















Got my mobile media server working in my car, but now I need to figure out how to get it to hibernate when the car turns off and wake when the car turns back on.



HARDWARE SETUP



             COMPUTER: Dell Inspiron 1545 laptop
WIRELESS ACCESS POINT: USB-powered Vonets VAR11N-300 miniature router
OPERATING SYSTEM: Ubuntu 16.04 LTS
MEDIA APPLICATION: Plex Media Server


I wiped the old laptop, installed Ubuntu and Plex, then loaded movies on the hard drive. Bought an external power supply for the laptop that plugs into a vehicle cigarette lighter socket. The internal wireless card on the laptop is too limited to act as an access point, so I found a tiny, USB-powered router that could be configured as a wireless access point. All the components nicely fit into a storage compartment area next to the tire jack. I tested it on my road trip to Banff National Park and the kids were able to use the Plex client app to watch movies streamed from the mobile media server on their mobile devices.



The only problem I have is that when I turn off the car the laptop switches to internal battery power and keeps running until it dies. I would like the laptop to wait a few minutes after the external power drops off and then go into hibernation. I would also like the laptop to come back out of hibernation once the car is turned back on.



What would be the best strategy for handling power management services in this situation?










share|improve this question























  • For hibernating when the external power is removed, you can set it to hibernate on low battery in the power management settings, and you can also set what low battery means, so you could e.g set it to hibernate when the battery is at 90%. I believe you need dconf-editor for this. There are also many other ways to achieve this, e.g. using power management hooks, to run the hibernate command. For coming out of suspend when the power is connected again - this is generally not possible, since the BIOS would need to support it, and most don't.

    – JonasCz
    Jul 3 '16 at 7:05
















1












1








1








Got my mobile media server working in my car, but now I need to figure out how to get it to hibernate when the car turns off and wake when the car turns back on.



HARDWARE SETUP



             COMPUTER: Dell Inspiron 1545 laptop
WIRELESS ACCESS POINT: USB-powered Vonets VAR11N-300 miniature router
OPERATING SYSTEM: Ubuntu 16.04 LTS
MEDIA APPLICATION: Plex Media Server


I wiped the old laptop, installed Ubuntu and Plex, then loaded movies on the hard drive. Bought an external power supply for the laptop that plugs into a vehicle cigarette lighter socket. The internal wireless card on the laptop is too limited to act as an access point, so I found a tiny, USB-powered router that could be configured as a wireless access point. All the components nicely fit into a storage compartment area next to the tire jack. I tested it on my road trip to Banff National Park and the kids were able to use the Plex client app to watch movies streamed from the mobile media server on their mobile devices.



The only problem I have is that when I turn off the car the laptop switches to internal battery power and keeps running until it dies. I would like the laptop to wait a few minutes after the external power drops off and then go into hibernation. I would also like the laptop to come back out of hibernation once the car is turned back on.



What would be the best strategy for handling power management services in this situation?










share|improve this question














Got my mobile media server working in my car, but now I need to figure out how to get it to hibernate when the car turns off and wake when the car turns back on.



HARDWARE SETUP



             COMPUTER: Dell Inspiron 1545 laptop
WIRELESS ACCESS POINT: USB-powered Vonets VAR11N-300 miniature router
OPERATING SYSTEM: Ubuntu 16.04 LTS
MEDIA APPLICATION: Plex Media Server


I wiped the old laptop, installed Ubuntu and Plex, then loaded movies on the hard drive. Bought an external power supply for the laptop that plugs into a vehicle cigarette lighter socket. The internal wireless card on the laptop is too limited to act as an access point, so I found a tiny, USB-powered router that could be configured as a wireless access point. All the components nicely fit into a storage compartment area next to the tire jack. I tested it on my road trip to Banff National Park and the kids were able to use the Plex client app to watch movies streamed from the mobile media server on their mobile devices.



The only problem I have is that when I turn off the car the laptop switches to internal battery power and keeps running until it dies. I would like the laptop to wait a few minutes after the external power drops off and then go into hibernation. I would also like the laptop to come back out of hibernation once the car is turned back on.



What would be the best strategy for handling power management services in this situation?







power-management hibernate wakeup






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 2 '16 at 19:36









hanmarihanmari

1061




1061













  • For hibernating when the external power is removed, you can set it to hibernate on low battery in the power management settings, and you can also set what low battery means, so you could e.g set it to hibernate when the battery is at 90%. I believe you need dconf-editor for this. There are also many other ways to achieve this, e.g. using power management hooks, to run the hibernate command. For coming out of suspend when the power is connected again - this is generally not possible, since the BIOS would need to support it, and most don't.

    – JonasCz
    Jul 3 '16 at 7:05





















  • For hibernating when the external power is removed, you can set it to hibernate on low battery in the power management settings, and you can also set what low battery means, so you could e.g set it to hibernate when the battery is at 90%. I believe you need dconf-editor for this. There are also many other ways to achieve this, e.g. using power management hooks, to run the hibernate command. For coming out of suspend when the power is connected again - this is generally not possible, since the BIOS would need to support it, and most don't.

    – JonasCz
    Jul 3 '16 at 7:05



















For hibernating when the external power is removed, you can set it to hibernate on low battery in the power management settings, and you can also set what low battery means, so you could e.g set it to hibernate when the battery is at 90%. I believe you need dconf-editor for this. There are also many other ways to achieve this, e.g. using power management hooks, to run the hibernate command. For coming out of suspend when the power is connected again - this is generally not possible, since the BIOS would need to support it, and most don't.

– JonasCz
Jul 3 '16 at 7:05







For hibernating when the external power is removed, you can set it to hibernate on low battery in the power management settings, and you can also set what low battery means, so you could e.g set it to hibernate when the battery is at 90%. I believe you need dconf-editor for this. There are also many other ways to achieve this, e.g. using power management hooks, to run the hibernate command. For coming out of suspend when the power is connected again - this is generally not possible, since the BIOS would need to support it, and most don't.

– JonasCz
Jul 3 '16 at 7:05












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f794072%2fcar-media-server-power-management-strategy%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f794072%2fcar-media-server-power-management-strategy%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Questions related to Moebius Transform of Characteristic Function of the Primes

List of scandals in India

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?