[b2g] Device goes offline when building.
Hi, I'm trying to build B2G for a Flame, but when I try to run build.sh, I get the following error: "error: device offline". After that, I need to reattach the device to the computer to get again access by shell to the device. My udev rules are the following rules: http://paste.ubuntu.com/7825165/ So why is the Flame going offline? Best regards. ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Device goes offline when building.
Do you have a lock screen enabled on your device? Adb is turned off when the lock screen is activated. Turn it on again by turning on the screen and unlocking the lock screen. Turn it on permanently by disabling the lock screen. *Andreas Pehrson *--- Software Engineer (+47) 959 60 374 | pehr...@telenordigital.com | www.telenordigital.com On Sun, Jul 20, 2014 at 4:15 PM, A. Crespo wrote: > Hi, > > I'm trying to build B2G for a Flame, but when I try to run build.sh, I get > the following error: "error: device offline". > > After that, I need to reattach the device to the computer to get again > access by shell to the device. > > My udev rules are the following rules: > http://paste.ubuntu.com/7825165/ > > So why is the Flame going offline? > > Best regards. > > ___ > dev-b2g mailing list > dev-b2g@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-b2g > > ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Device goes offline when building.
Hi Andreas, Of course, I had disabled the lock screen. But maybe may it be related to it? Thanks. 2014-07-20 17:21 GMT+02:00 Andreas Pehrson : > Do you have a lock screen enabled on your device? Adb is turned off when > the lock screen is activated. Turn it on again by turning on the screen and > unlocking the lock screen. Turn it on permanently by disabling the lock > screen. > > *Andreas Pehrson *--- Software Engineer > > (+47) 959 60 374 | pehr...@telenordigital.com | > www.telenordigital.com > > > On Sun, Jul 20, 2014 at 4:15 PM, A. Crespo > wrote: > >> Hi, >> >> I'm trying to build B2G for a Flame, but when I try to run build.sh, I >> get the following error: "error: device offline". >> >> After that, I need to reattach the device to the computer to get again >> access by shell to the device. >> >> My udev rules are the following rules: >> http://paste.ubuntu.com/7825165/ >> >> So why is the Flame going offline? >> >> Best regards. >> >> ___ >> dev-b2g mailing list >> dev-b2g@lists.mozilla.org >> https://lists.mozilla.org/listinfo/dev-b2g >> >> > ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Device goes offline when building.
On Sunday, July 20, 2014 10:15:08 AM UTC-4, A. Crespo wrote: > Hi, > > I'm trying to build B2G for a Flame, but when I try to run build.sh, I get > the following error: "error: device offline". > > After that, I need to reattach the device to the computer to get again access > by shell to the device. > > > My udev rules are the following rules: > http://paste.ubuntu.com/7825165/ > > So why is the Flame going offline? > > Best regards. I don't know about flame but with My phone, FF added a very very very useless and annoying bug, which they call a security feature, (The devs are smoking something and won't share) I had to disable screen lock to stop phone from dropping usb connection, could be the same in your case, disable your screen lock and see if it helps. ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Device goes offline when building.
Then I'm not sure what it could be. I don't have a flame myself so I'm not aware of any specific issues there. Check at what point it goes offline and maybe you can nail it down eventually. *Andreas Pehrson *--- Software Engineer (+47) 959 60 374 | pehr...@telenordigital.com | www.telenordigital.com On Sun, Jul 20, 2014 at 5:25 PM, A. Crespo wrote: > Hi Andreas, > > Of course, I had disabled the lock screen. But maybe may it be related to > it? > > Thanks. > > > 2014-07-20 17:21 GMT+02:00 Andreas Pehrson : > > Do you have a lock screen enabled on your device? Adb is turned off when >> the lock screen is activated. Turn it on again by turning on the screen and >> unlocking the lock screen. Turn it on permanently by disabling the lock >> screen. >> >> *Andreas Pehrson *--- Software Engineer >> >> (+47) 959 60 374 | pehr...@telenordigital.com | >> www.telenordigital.com >> >> >> On Sun, Jul 20, 2014 at 4:15 PM, A. Crespo >> wrote: >> >>> Hi, >>> >>> I'm trying to build B2G for a Flame, but when I try to run build.sh, I >>> get the following error: "error: device offline". >>> >>> After that, I need to reattach the device to the computer to get again >>> access by shell to the device. >>> >>> My udev rules are the following rules: >>> http://paste.ubuntu.com/7825165/ >>> >>> So why is the Flame going offline? >>> >>> Best regards. >>> >>> ___ >>> dev-b2g mailing list >>> dev-b2g@lists.mozilla.org >>> https://lists.mozilla.org/listinfo/dev-b2g >>> >>> >> > ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Device goes offline when building.
It seems to be an error related to ADB: http://playingwithsid.blogspot.com.es/2013/05/android-device-offline-fixing-adb.html I had the same issue with the Flatfish, by the way. I have fixed it using VirtualBox and loading its usb by default. It's very strange. 2014-07-20 22:21 GMT+02:00 Andreas Pehrson : > Then I'm not sure what it could be. I don't have a flame myself so I'm not > aware of any specific issues there. > > Check at what point it goes offline and maybe you can nail it down > eventually. > > *Andreas Pehrson *--- Software Engineer > > (+47) 959 60 374 | pehr...@telenordigital.com | > www.telenordigital.com > > > On Sun, Jul 20, 2014 at 5:25 PM, A. Crespo > wrote: > >> Hi Andreas, >> >> Of course, I had disabled the lock screen. But maybe may it be related to >> it? >> >> Thanks. >> >> >> 2014-07-20 17:21 GMT+02:00 Andreas Pehrson : >> >> Do you have a lock screen enabled on your device? Adb is turned off when >>> the lock screen is activated. Turn it on again by turning on the screen and >>> unlocking the lock screen. Turn it on permanently by disabling the lock >>> screen. >>> >>> *Andreas Pehrson *--- Software Engineer >>> >>> (+47) 959 60 374 | pehr...@telenordigital.com | >>> www.telenordigital.com >>> >>> >>> On Sun, Jul 20, 2014 at 4:15 PM, A. Crespo >>> wrote: >>> Hi, I'm trying to build B2G for a Flame, but when I try to run build.sh, I get the following error: "error: device offline". After that, I need to reattach the device to the computer to get again access by shell to the device. My udev rules are the following rules: http://paste.ubuntu.com/7825165/ So why is the Flame going offline? Best regards. ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g >>> >> > ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Device goes offline when building.
In a user build, adb currently goes offline when the screen locks, and after 12 hours. You can disable the 12-hour timer using this script: https://gist.github.com/dhylands/6253999 On eng and user-debug builds, adb stays on all of the time. Enabling/Disabling other USB functions (USB tethering and/or USB Mass Storage) will also temporarily disable adb while the USB setting changes. This s typically for less than a second, but it will cause an adb session to be dropped. I've also filed a couple of bugs related to adb: https://bugzilla.mozilla.org/show_bug.cgi?id=1035437 - Add an adb wakelock https://bugzilla.mozilla.org/show_bug.cgi?id=1035423 - Add a property which allows adb to always stay enabled. I put these up as mentored bugs, so if anybody would like to tackle them, I'm happy to provide guidance. Dave Hylands - Original Message - > From: "A. Crespo" > To: "Andreas Pehrson" > Cc: "Dev B2G List" > Sent: Sunday, July 20, 2014 1:54:32 PM > Subject: Re: [b2g] Device goes offline when building. > It seems to be an error related to ADB: > http://playingwithsid.blogspot.com.es/2013/05/android-device-offline-fixing-adb.html > I had the same issue with the Flatfish, by the way. I have fixed it using > VirtualBox and loading its usb by default. It's very strange. > 2014-07-20 22:21 GMT+02:00 Andreas Pehrson < pehr...@telenordigital.com > : > > Then I'm not sure what it could be. I don't have a flame myself so I'm not > > aware of any specific issues there. > > > Check at what point it goes offline and maybe you can nail it down > > eventually. > > > Andreas Pehrson --- Software Engineer > > > (+47) 959 60 374 | pehr...@telenordigital.com | www.telenordigital.com > > > On Sun, Jul 20, 2014 at 5:25 PM, A. Crespo < madrid.cre...@gmail.com > > > wrote: > > > > Hi Andreas, > > > > > > Of course, I had disabled the lock screen. But maybe may it be related to > > > it? > > > > > > Thanks. > > > > > > 2014-07-20 17:21 GMT+02:00 Andreas Pehrson < pehr...@telenordigital.com > > > > : > > > > > > > Do you have a lock screen enabled on your device? Adb is turned off > > > > when > > > > the > > > > lock screen is activated. Turn it on again by turning on the screen and > > > > unlocking the lock screen. Turn it on permanently by disabling the lock > > > > screen. > > > > > > > > > > Andreas Pehrson --- Software Engineer > > > > > > > > > > (+47) 959 60 374 | pehr...@telenordigital.com | www.telenordigital.com > > > > > > > > > > On Sun, Jul 20, 2014 at 4:15 PM, A. Crespo < madrid.cre...@gmail.com > > > > > wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > I'm trying to build B2G for a Flame, but when I try to run build.sh, > > > > > I > > > > > get > > > > > the following error: "error: device offline". > > > > > > > > > > > > > > > After that, I need to reattach the device to the computer to get > > > > > again > > > > > access > > > > > by shell to the device. > > > > > > > > > > > > > > > My udev rules are the following rules: > > > > > > > > > > > > > > > http://paste.ubuntu.com/7825165/ > > > > > > > > > > > > > > > So why is the Flame going offline? > > > > > > > > > > > > > > > Best regards. > > > > > > > > > > > > > > > ___ > > > > > > > > > > > > > > > dev-b2g mailing list > > > > > > > > > > > > > > > dev-b2g@lists.mozilla.org > > > > > > > > > > > > > > > https://lists.mozilla.org/listinfo/dev-b2g > > > > > > > > > > > ___ > dev-b2g mailing list > dev-b2g@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g