Hello all.
I know there are several threads on this, but I just wanted to ask a couple questions while i search, Hopefully someone, maybe a dev or two, will have some ideas..
Since the GT2 has no physical buttons on the face, and it's difficult to install it into a dash unless you leave a mechanism for pressing the screen wake and volume buttons, I have the following questions:
1) is it possible to make the Galaxy Tab wake when powered by external source (not battery), such as plugging it into the charger?
2) is it possible to have the screen fall asleep only when external power has been removed? (Such as turning off the ignition which kills power to the charger) That way when the car is turned off, it will go to sleep mode till the car is turned on again.
3) What is the fastest booting rom? ( never hurts to ask)
4) is there a way to completely disable the lockscreen, so when it does make the screen turn on, it is at the desktop?
That should do it for now. I am very interested in this project, and am acquiring parts to do it. I just need to know if i have to create a pushbutton setup in the top of my dash or not...I'd prefer not to.
Any info is greatly appreciated!
I am checking out Tasker and a few other items i found in another post.. I like the idea of moving the power button too... If i do it, i will post pics.
Still searching,..
Tasker works well for all the issues you brought up. As well as put the Tab into low power mode (screen off & hibernate) if you have a battery drain app that will turn off all non-essential apps. To access the power button, I bent a paperclip into a hook of sorts and it works well.
Here is an install thread for a C6 Corvette that should help:
forums.corvetteforum.com/c6-corvette-general-discussion/3203999-android-7-tablet-install-in-a-c6.html
ATM I am looking for a volume booster like Volume+ that will work on the Tab 2 with CyanogenMod 10.1.
Firewater Burns said:
Tasker works well for all the issues you brought up. As well as put the Tab into low power mode (screen off & hibernate) if you have a battery drain app that will turn off all non-essential apps. To access the power button, I bent a paperclip into a hook of sorts and it works well.
Here is an install thread for a C6 Corvette that should help:
forums.corvetteforum.com/c6-corvette-general-discussion/3203999-android-7-tablet-install-in-a-c6.html
ATM I am looking for a volume booster like Volume+ that will work on the Tab 2 with CyanogenMod 10.1.
Click to expand...
Click to collapse
Thanks for the link Firewater...I tried Tasker.. not sure why, but it didn't seem to work well for me. I just downloaded Caffine and it seems to be doing exactly what i wanted.
As for the paperclip, I will attempt something a little more "professional" looking to mount in the dash....
I may be doing a hand-laid Fiberglass custom dash for this project. I will keep updated here on what i end up doing and will start a thread when the time is right.
Though, I am still waiting for a Dev to chime in saying "Hey, those options are in my kernel..." lol
Knightbird68 said:
Hello all.
I know there are several threads on this, but I just wanted to ask a couple questions while i search, Hopefully someone, maybe a dev or two, will have some ideas..
Since the GT2 has no physical buttons on the face, and it's difficult to install it into a dash unless you leave a mechanism for pressing the screen wake and volume buttons, I have the following questions:
1) is it possible to make the Galaxy Tab wake when powered by external source (not battery), such as plugging it into the charger?
2) is it possible to have the screen fall asleep only when external power has been removed? (Such as turning off the ignition which kills power to the charger) That way when the car is turned off, it will go to sleep mode till the car is turned on again.
3) What is the fastest booting rom? ( never hurts to ask)
4) is there a way to completely disable the lockscreen, so when it does make the screen turn on, it is at the desktop?
That should do it for now. I am very interested in this project, and am acquiring parts to do it. I just need to know if i have to create a pushbutton setup in the top of my dash or not...I'd prefer not to.
Any info is greatly appreciated!
Click to expand...
Click to collapse
I recently installed my galaxy tab 2 into my car and I can tell you that numbers 1 2 and 4 are certainly possible.
In my case, my cigarette lighters never turn off. Even when there is no power in the car on the lighters still work. So I had to have someone wire one of them to the ignition.
1 I use tasker to power the screen on, launch poweramp and enable bluetooth when the car is turned on. I already set it in the developer options to not turn the screen off when charging so that wasn't a problem.
2 When it loses a charge (when I turn off the car) It kills poweramp, copilot GPS, turns off bluetooth and turns off the screen
3 I'm using paranoid android 2.52 and it takes about 30 seconds to boot
4. It's pretty easy to disable the lockscreen, its in the settings under security. Just change the screen lock to none.
One thing I would like to know is if there is a way to power on the tab 2 when it receives power. For instance my gsII and HP touchpad power on a few seconds after a charger is connected to them if they are powered off
Knightbird68 said:
Hello all.
I know there are several threads on this, but I just wanted to ask a couple questions while i search, Hopefully someone, maybe a dev or two, will have some ideas..
Since the GT2 has no physical buttons on the face, and it's difficult to install it into a dash unless you leave a mechanism for pressing the screen wake and volume buttons, I have the following questions:
1) is it possible to make the Galaxy Tab wake when powered by external source (not battery), such as plugging it into the charger?
2) is it possible to have the screen fall asleep only when external power has been removed? (Such as turning off the ignition which kills power to the charger) That way when the car is turned off, it will go to sleep mode till the car is turned on again.
3) What is the fastest booting rom? ( never hurts to ask)
4) is there a way to completely disable the lockscreen, so when it does make the screen turn on, it is at the desktop?
That should do it for now. I am very interested in this project, and am acquiring parts to do it. I just need to know if i have to create a pushbutton setup in the top of my dash or not...I'd prefer not to.
Any info is greatly appreciated!
Click to expand...
Click to collapse
This is also an idea i have playing around with in my head. Currently i have a 2000 Chevy Impala and my 7" Tab 2 fits perfect in the stock stereo area. i do use it and my ipod to listen to music thru a cheap iSimple FM modulator that I bought thru Amazon.....i just havent mustered up the balls to actually install it as a head unit. Heres a few links to some installs i found online...maybe they can help a bit.
http://www.mp3car.com/show-off-your-project/152815-galaxy-tab-2-install-honda-civic.html
http://www.flickr.com/photos/[email protected]/7538348346/in/photostream/
jrea77 said:
This is also an idea i have playing around with in my head. Currently i have a 2000 Chevy Impala and my 7" Tab 2 fits perfect in the stock stereo area. i do use it and my ipod to listen to music thru a cheap iSimple FM modulator that I bought thru Amazon.....i just havent mustered up the balls to actually install it as a head unit. Heres a few links to some installs i found online...maybe they can help a bit.
http://www.mp3car.com/show-off-your-project/152815-galaxy-tab-2-install-honda-civic.html
http://www.flickr.com/photos/[email protected]/7538348346/in/photostream/
Click to expand...
Click to collapse
My car is a 2002 impala and it does fit perfectly, Just know it's a ***** getting the front panel on because its much bigger than most cars. It's totally worth it.
barnesk9 said:
My car is a 2002 impala and it does fit perfectly, Just know it's a ***** getting the front panel on because its much bigger than most cars. It's totally worth it.
Click to expand...
Click to collapse
ya i had to take it off to install the fm modulator behind the stick stereo.....its just one ginormous piece! lol
as soon as i can figure out how to make a mount or nice dock so that it looks clean in there ill install the stock stereo in the trunk with a special wiring harness and us an EQ for volume control with the tablet. i have it all planned out,......im just lazy. :silly:
jrea77 said:
ya i had to take it off to install the fm modulator behind the stick stereo.....its just one ginormous piece! lol
as soon as i can figure out how to make a mount or nice dock so that it looks clean in there ill install the stock stereo in the trunk with a special wiring harness and us an EQ for volume control with the tablet. i have it all planned out,......im just lazy. :silly:
Click to expand...
Click to collapse
I moved the climate controls to where the ashtray and cigarette lighters were and put a head unit in it's place.
barnesk9 said:
I moved the climate controls to where the ashtray and cigarette lighters were and put a head unit in it's place.
Click to expand...
Click to collapse
any pics of your setup?
Yeah loads, I'm not sure if I can load pictures here
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
Here are a couple from the first version of it they may be sideways I can't tell
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
Related
I was just wondering if anyone used the nexus one docking station and liked it? I've read some reviews going both ways.
after reading about burn in I was also wondering if anyone had any similar problems....
I would hate to use it as a clock over night and have 1 2 3 4 5 6 7 8 9 10 11 12
Burned into my screen x.x
if youre afraid of burn in.. all you have to do is touch the power button and it turns the screen and backlight off... besides, the clock app defaults to a screensaver anyway... i've had mine since it came out and its nice to not have to plug it in at night... just drop and charge
That is good.. That means if I need to know I can just tap it to turn it on or off...
I am actually almost considering buying two.. one for my desk so I can set it next to my comp and one for my bed stand lol...
But, being able to turn it off may prove useful if I find the light bright.. seeing as I have trouble sleeping at night with any light in the room.
I love my dock. get it!
Snow_fox said:
That is good.. That means if I need to know I can just tap it to turn it on or off...
I am actually almost considering buying two.. one for my desk so I can set it next to my comp and one for my bed stand lol...
But, being able to turn it off may prove useful if I find the light bright.. seeing as I have trouble sleeping at night with any light in the room.
Click to expand...
Click to collapse
Actually it wont be the clock light that you find bright. It is really dim and as mentioned above, moves around like a screen saver.
What you will find bright and you cannot turn off with the default OS2.1 is the white illumination for the 4 buttons at the bottom. The buttons stay backlit and some people find them annoying. Apparently with rooted phones there are ways to dim them.
Buy a third one to put in your car. Thats where mine lives.
^^ Fixed in Froyo.
Lol.. I was considering rooting anyway to get the black notification bar instead of the white.
I was so set on getting an n1 until I read about burn in.. its amazing it isn't more noted across the web..
Snow_fox said:
Lol.. I was considering rooting anyway to get the black notification bar instead of the white.
I was so set on getting an n1 until I read about burn in.. its amazing it isn't more noted across the web..
Click to expand...
Click to collapse
Probably because it's a non-issue.
That could be true. I suppose it really is up to the buyer... I wouldn't expect your average cell phone user to care as much.. However, people spending 529$ on the phone I suppose I view slightly differently.
With the dock is it possible to still use a case? I was reading one case is suppose to be 1 mm thick.. but, sometimes that is too thick sometimes its managable.. any idea if it would work?
I'm getting paid Monday, I have to pay off a ticket and my phone bill. Hopefully I'll have a little left over so I can splurge and by myself something nice.. Like the dock.
Doesn't it have a 3.5mm output on the back? So you can sync via Bluetooth to the dock and play your music through speakers plugged in? I may by a cheap little 2.1 surround sound system to plug in to it...
Nexus one dock
I got the nexus dock a week ago and love that dam thing. I really didnt need it but it looks cool on my desk. I have it hooked up to my surround sound so I stream music to the dock. I nice add on if your a nexus one owner.
yeah its a 3.5 mm.
Apparently Seidio also offers a dock...
I am wondering if it would ruin the seidio innocase II taking the phone in and out of the case everyday.. I've read some review saying its impossible to take out.. others it isn't any problem at all.. I would hate to spend 20-30$ and tear up the case taking the n1 in and out for use on the dock.
Just got my dock today, and loving it so far! The music streaming is great, I can leave my phone around my room, and leave the music on
Only thing is if I am using it while its sitting there, it will sometimes pop out, as the lip holding the phone in place isn't that big..
But loving it!
I have the google dock and the Seidio dock. Love the goog dock, hate the Seidio dock. It's difficult to set the phone in or take it out of the Seidio dock. It charges via usb from a computer but does not connect (no file transfer, etc) and is cheaply constructed. I don't use it anymore.
N1 stock w/FroYo
I saw the seidio one.. and judging from the pics i've seen.. the seidio just doesn't look as elegant....
The only reason why I was considering it was because I may be able to charge the n1 with a case on.. so scratch that.
Pissed at my dock
Anyone else have pin contacts issues with the dock?
I hate mine. I have to re-seat my N1 on the dock 2-3 times till the pins match up and connect properly (Yes I wait about 5 seconds to make sure, and look at the charging light).
Then when it's connected just fine and goes to the Clock screen, I would get an email that vibrates and it would disconnect from the dock and I have to jiggle it and re-seat it again!
I hate it! The pins look fine and I'm not using any case.
nxt said:
Anyone else have pin contacts issues with the dock?
I hate mine. I have to re-seat my N1 on the dock 2-3 times till the pins match up and connect properly (Yes I wait about 5 seconds to make sure, and look at the charging light).
Then when it's connected just fine and goes to the Clock screen, I would get an email that vibrates and it would disconnect from the dock and I have to jiggle it and re-seat it again!
I hate it! The pins look fine and I'm not using any case.
Click to expand...
Click to collapse
+1
Mine doesn't really sit in their well. I can't really use it in the dock. So pressing the screen for alarm buttons etc keeps disconnecting it so it would go back to the home screen then back to the clock dock. GAHHH
I don't know if it's the dock or the back of the phone but there's nothing I can do about it because I am in the UK.
nxt said:
Anyone else have pin contacts issues with the dock?
I hate mine. I have to re-seat my N1 on the dock 2-3 times till the pins match up and connect properly (Yes I wait about 5 seconds to make sure, and look at the charging light).
Then when it's connected just fine and goes to the Clock screen, I would get an email that vibrates and it would disconnect from the dock and I have to jiggle it and re-seat it again!
I hate it! The pins look fine and I'm not using any case.
Click to expand...
Click to collapse
I have to reseat mine almost every time I dock, but I have a BSE, so I'm ok with it.
And I also occasionally have an annoying buzzing from the wires that I've been unable to get rid of (I'm sure I'll pinpoint it eventually and fix it).
Even with those two things, I think the dock rocks!!
no problems with my htc dock
i love the b/t audio ,i have it hooked up to my pc speakers
I use my desktop dock every evening and love it.
I've gone back and forth between automatically opening the Clock app and Gentle Alarm to finally (I think) settle on the Clock app. I just trust the screen saver a little more.
As has already been mentioned, the illuminated buttons are annoying (fixed in froyo)
If the option to disable trackball notifications when docked was present, I would be very happy
I am unable to watch a video on the Desktop dock. When I put the Epic into the dock it hits the volume rocker and it then turns the volume to mute. On a couple of occasions I have been able to barely put it in and it will play at what ever volume but once I touch it and mutes it again.
Anyone having a better experience with it?
Thanks
dws51 said:
I am unable to watch a video on the Desktop dock. When I put the Epic into the dock it hits the volume rocker and it then turns the volume to mute. On a couple of occasions I have been able to barely put it in and it will play at what ever volume but once I touch it and mutes it again.
Anyone having a better experience with it?
Thanks
Click to expand...
Click to collapse
ive got said dock. same issues. totally cuz the volume rocker is hitting the cradle in just the right manner. ive just gotten really good at putting it in at just the right angle to not hit it, but your right. if i touch pretty much anything, it starts to turn the volume down all the way. what i do when im not going to try to have a movie playing is always make sure the screen is off. the dock will turn on the screen about a few seconds after its plugged in. it shouldnt be this big of a pain in the ass and im thinking about taking the dock back. i think its a legitimate reason.
austin420 said:
ive got said dock. same issues. totally cuz the volume rocker is hitting the cradle in just the right manner. ive just gotten really good at putting it in at just the right angle to not hit it, but your right. if i touch pretty much anything, it starts to turn the volume down all the way. what i do when im not going to try to have a movie playing is always make sure the screen is off. the dock will turn on the screen about a few seconds after its plugged in. it shouldnt be this big of a pain in the ass and im thinking about taking the dock back. i think its a legitimate reason.
Click to expand...
Click to collapse
I didn't have any of these problems with mine and was wondering what everyone was talking about.
That is until I took my phone charm off. Apparently the tiny string the charm uses is enough to keep the phone from hitting the volume and causing problems.
That being said, you can control volume, too, through the function and arrow keys on the keyboard. It helps but it is still annoying if you don't have a charm and keep hitting the hardware volume keys.
(My charm is ninja stars, so not all charms are "girly".)
ya. i had an old psp wrist strap on and noticed it kept it from happening too, but the strap is kinda garish and i didnt want it on there all the time. im still on the fence about taking it back.
I put three layers of electrical tape along the right half of the groove, just before it dips down for the volume keys (alas, not down far enough.) It works great for me... since I was going to cover that bright blue light anyway.
Well so far the only glitch in my rooted 4 day old G2x is that for some odd reason,
Lots of times when I go to pull out of my carrying case the phone goes into CAR MODE menu screen? Driving me nuts!
I am not not pushing anything.. It happens alot when I go to answer call then I can get back to phone screen to answer call after exciting CAR MODE>
I am thinking I could delete car mode. However I would like to see if anyone else is having this issue?
Thanks!
iceshark said:
Well so far the only glitch in my rooted 4 day old G2x is that for some odd reason,
Lots of times when I go to pull out of my carrying case the phone goes into CAR MODE menu screen? Driving me nuts!
I am not not pushing anything.. It happens alot when I go to answer call then I can get back to phone screen to answer call after exciting CAR MODE>
I am thinking I could delete car mode. However I would like to see if anyone else is having this issue?
Thanks!
Click to expand...
Click to collapse
read somewhere there's a magnetic sensor in the phone so if you make contact with magnets in your pocket or case it will trigger car mode.
Lame!!!!!!!!!!
Thanks! You hit the nail on the head. My case has magnet (costco case) and when I pull phone out or touch near the mag pulling out it puts into car mode. Why the heck is this sensor there? Plus I do not see where I can turn this off.
ugg.
You can always just freeze car home in Titanium back up so it doesn't run.
android thing
iceshark said:
Lame!!!!!!!!!!
Thanks! You hit the nail on the head. My case has magnet (costco case) and when I pull phone out or touch near the mag pulling out it puts into car mode. Why the heck is this sensor there? Plus I do not see where I can turn this off.
ugg.
Click to expand...
Click to collapse
there were 2 magnets in the early android phones probably still there. 1 was so they put a magnet on 1 side of the car dock and when you put phone in it went to carmode. than they put a magnet on the other side for a desktop dock and when you put the phone in it would go to the dock program. there is a program called dock runner that will put the phone in the dock mode without activating by the magnet. there may be a way to deactivate these functions by modifying source but i have not ever seen anyone deactivate these. so this isnt a lg thing its an android(google) thing.
Prod1702 said:
You can always just freeze car home in Titanium back up so it doesn't run.
Click to expand...
Click to collapse
Great advice. Trying it now! Will report back
Not sure on the magnet thing. I have my phone sitting on a wooden table. I end the task.. set the phone down. I pick it up again, and it's running.
As a matter of fact, I had all tasks killed and shut down the screen. I turned on the phone, sent a txt msg and checked FB. I went to my running apps and just about every stinking app was running. AppPack, Car Home, Maps, Navigator, Gmail, and a cpl of others. I used the ATK app and shut them all down and set it down. As I was typing this, I picked it back up to take a look.. AppPack, Car Home, and Maps are all running.. GPS is off.
There are no magnets around. Just checked again.. Car Home and AppPack restarted.. stupid. Can't wait for my sd card to get in so I can backup the rom and start ripping it apart.
Mine was being enabled by my magnets in my holster. I can't see how the program is starting after being on a wooden table but it's a easy fix.
Just freeze the app. It's not that hard. You have 3 options:
1) Fallow directions and freeze the app
2) Don't do anything and just keep complaining
3) Take the phone back if you don't like it
Stop making things harder than they really are.
jrwingate6 said:
Mine was being enabled by my magnets in my holster. I can't see how the program is starting after being on a wooden table but it's a easy fix.
Just freeze the app. It's not that hard. You have 3 options:
1) Fallow directions and freeze the app
2) Don't do anything and just keep complaining
3) Take the phone back if you don't like it
Stop making things harder than they really are.
Click to expand...
Click to collapse
I'm doing something about it.. don't worry dad. I'm pointing out that the magnet is not the only reason why it would come on.. and I released frustration too. I can do that too. That doesn't mean I'm just complaining and doing nothing about it. Don't read so much into it..
Btw, those are your only 3 options.. not to be placed in a box and cast out as the only options for the rest of the world...
Thanks team!~
Freezing app in Titanium worked!
schmit said:
I'm doing something about it.. don't worry dad. I'm pointing out that the magnet is not the only reason why it would come on.. and I released frustration too. I can do that too. That doesn't mean I'm just complaining and doing nothing about it. Don't read so much into it..
Btw, those are your only 3 options.. not to be placed in a box and cast out as the only options for the rest of the world...
Click to expand...
Click to collapse
Actually the OP is talking about car mode being live on his screen, if I'm reading it correctly.
You have the same problem I do: Car Home is constantly running in the background.
I did a factory reset and battery life has gone up tenfold. 19 hours, down to 20%. Car home is still running, but it doesn't appear to have a negative impact on the bettery once you do reset
So could this work?
http://www.androlib.com/android.application.com-dreamforms-android-dockblocker-pntx.aspx
I use "Dock-No-Op" to solve this very problem, since I actually use car home while driving.
Edit: I wonder if removing CarHomeLauncher.apk would solve this, while keeping Carhome itself.
Yea from the magnetic strip in phone case and it cause the the phone to reboot.
Sent from my LG-P999 using XDA Premium App
I went in root explorer system/ apparently and deleted car mode. It was OK for ne because I never use the app
Does freezing an app in Titanium backup remove it from the applications list or just stop it from starting. I have to send my phone back today and am trying to restore it but I had already deleted all the "stock" apps. This is making a hassle trying to do the clockwork recovery.
Also, can you only freeze the apps if you have Titanium backup pro?
Im on superliterom 4.4.2 with safestrap installed.
I have a car dock on my dash for my s3.
Its plugged into a genuine samsung mhl 2.0 usb wire for hdmi out to my pioneer appradio to mimic the screen.
This works great until the phone overheats, which it did also on 4.3 and 4.1.2 in the summer time.
But now with 4.4.2, i get a warning message that its overheating and that my phone will soon turn off all apps except for phone.
Obviously its a security feature so it doesnt over heat.
How do i get rid of this?
I'll be driving somewhere with my gps and then it will shut it off and i cant open it again until the phone cools off.
I cant be dealing with something like that while im driving.
The only solution i found so far is to blast the ac in the windshield vents.
It takes a while to reduce the temperature but it does work after X amount of time.
But if im reaching an exit i need to get off at, i wouldnt know it because my gps is off and wont turn on.
Does anyone have a mod for this or can create one, to disable that security feature?
I've had that happen once, in the car dock with the sun shining right into the windshield.
My question is, why would you want to disable this warning? Shutting down apps and processes is the phones attempt to save itself from cooking. Electronics and heat do not play nice. Disabling this would be like having your car overheat and instead of fixing the problem you just pull the bulb out of the warning lamp and keep going. It's your phone, so obviously you can do what you want, but it may not last long.
Sent from my SCH-I535 using XDA Free mobile app
I have an ooold phone, a rooted Xperia E (C1504) from 2013. This is important, because I am limited to using Android 4.1.1 Jelly Bean.
Long story short, the power on button is broken. I pulled it out with pliers because it was malfunctioning to the point of making the phone unusable. I actually use a clip folded so that it touches both ends where the button was soldered and it actually works perfectly fine as a substitute "button". Thing is, it's super inconvenient. I don't wanna take off the lid then put the clip just so the screen turns on so I can change the song playing.
Anyways, is there an app that allows me to turn on/off the screen or map my power button that does NOT heavily drain my battery?
I have tried several suggestions but they either don't do what I want/do it poorly, or are not compatible with jelly bean.
Or better yet, does anyone know of any app that turns ON the screen when connecting 3.5mm earbuds? This is an already included function in many phones so I imagine there should be an app or xposed module that can do that withouth relying on a wakelock running 24/7 draining battery.
Basically I want something that does what "Volume Power" does, the problem with this god tier app is that it drained half my battery on 5 hours of stand-by. It's a shame because it's exactly what I want.
Anyone has any ideas? Thank you
PS. as a side note, if you want to answer, I figured I'd rather ask here than making a thread for something like this.
I have an xperia arc s with a broken screen. If I lift it up of the case in a manner that the flex cables are tense, it works ok with many ghost touches. As soon as I remove what was under it holding it high above the phone case so that it sits normally, the image fades away. Backlight still works, but the image goes away. Only until I pull it up and tense the flex cable is that the image returns. I know the screen is shot, but still, I'm curious, any ideas what happened with it? lol
EDIT. PS.2. Well the problem with the screen I mentioned is that the flex cable was more sensitive than I was accustomed and I damaged, that's about it.
EDIT.
I did find something, and while it may not be a solution for everyone, it was almost exactly what I wanted. First I rooted, then I used Xposed Installer and used Xposed Additions so to be able to map the physical camera button and add "Screen Off" and "Screen On" conditions to it.
The only problem with it is that with a long press instead of showing the power menu (power off, restart) it just opens the camera, as it's supposed to.
I guess you could solve that but it doesn't matter in my case, since the power button switch is soldered directly into my phone's motherboard rather than being a flex cable addition or something, so I just removed the button with pliers and use a sanded paper clip to make a connection between the 2 points where the button was soldered, that way I bring up the power menu and also turn on the phone.
Again, this worked for me because of the way the power button was put on my motherboard and I did this only because the button was completely shot and unusable, like a ruptured appendix. It was turning off and on my phone, also preventing it from turning on and all of this completely at random. If your power button is a flex cable accessory that connects to the main board or is not completely shot like mine, don't do this because it will help nothing, hey, in your case it's probably better because you just replace the power button + volume buttons flex cable for another and you're good to go. You can get it from ebay or buy a 2nd hand phone that is not working (which should be cheap) and use the spares for your own.
Hope this helped someone, someday, anytime.