Jump to content


Advent Vega kernel source code now available!


1787 replies to this topic

#1781
Scanno

Scanno

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 154 posts
  • Location:Arnhem
  • Devices:HTC Desire Z, POV Mobii Tegra
@all,
I am trying to access the sdcard at boot time. I have added init.d support and the script is called, but the sdcard is not mounted yet. Is there a way to wait until the sdcard is mounted?


#1782
Areo

Areo

    Regular

  • Members
  • PipPip
  • 66 posts
@scanno

Nice work on VegaCream. Runs smooth.

@all nice work on 3g

Ok now back to business :P
I am working on wifi, now it seems to kick in sometimes, sometimes not.

I traced the problem to wpa_supplicant and wpa_supplicant.conf. Also I updated wpa_supplicant.conf as this was still an example...

Kind Regards,
Areo

Edited by Areo, 21 May 2012 - 07:06 PM.


#1783
Areo

Areo

    Regular

  • Members
  • PipPip
  • 66 posts

View PostScanno, on 21 May 2012 - 04:34 PM, said:

@all,
I am trying to access the sdcard at boot time. I have added init.d support and the script is called, but the sdcard is not mounted yet. Is there a way to wait until the sdcard is mounted?

You could try to set sdcard mounting before system mounting in the ramdisk but I doubt it will get the result you want.

Kind Regards,
Areo


#1784
Scanno

Scanno

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 154 posts
  • Location:Arnhem
  • Devices:HTC Desire Z, POV Mobii Tegra

View PostAreo, on 21 May 2012 - 06:35 PM, said:

You could try to set sdcard mounting before system mounting in the ramdisk but I doubt it will get the result you want.

Kind Regards,
Areo
The thing i want to do is to see if a certain file is on the sdcard so i can set a setting. Say the file /mnt/sdcard/vegacream/boot_usbhost_enable is there, then an echo 1 > /sys/usbbus/usb_host is done, so the usb port is set to host. This can help people who have touchscreen problems and want to recalibrate the screen.

Also i am thinking of something like: /mnt/sdcard/vegacream/set160dpi for people who want to have 160dpi instead of the 120dpi VegaCream standard has.... This can be done with a one-time script (editing the build.prop file).


#1785
Areo

Areo

    Regular

  • Members
  • PipPip
  • 66 posts

View PostScanno, on 21 May 2012 - 07:06 PM, said:

The thing i want to do is to see if a certain file is on the sdcard so i can set a setting. Say the file /mnt/sdcard/vegacream/boot_usbhost_enable is there, then an echo 1 > /sys/usbbus/usb_host is done, so the usb port is set to host. This can help people who have touchscreen problems and want to recalibrate the screen.

Also i am thinking of something like: /mnt/sdcard/vegacream/set160dpi for people who want to have 160dpi instead of the 120dpi VegaCream standard has.... This can be done with a one-time script (editing the build.prop file).

I don't think that is going to work. What you can do is what we did on HoneyIce. Alter settings.apk and put the extra option in it and let it reboot after that. That's way easier and maybe even better for the users. Because where can they select that they want to get 160dpi (I run it btw and I like it a lot more then 120)?

Kind Regards,
Areo

Edit: About wifi, it seems to come back alive in about 5-6 seconds after sleep mode. This is only with a changed wpa_supplicant.conf.

Edit2: Wifi now stays alive at sleep but is killed on wake up, then after 6-10 sec it comes back... Will pull a logcat

Edit3: Ran out of time, here is the configured wpa_supplicant.conf, nothing special. It seem to help with short sleeps. You can also try ctrl_interface=eth0 I find it working better. The problem is that it is killed when it wakes up, but sometimes also when sleeping. Then it gives the well known out of reach statement. Well we are 1 tiny step closer to fixing it with a configured wpa_supplicant.conf

Edit4: As the .conf is now ok in my opinion. I think the problem lies with the wpa_supplicant (/system/bin). Maybe we need to take a look at the source. Or is this all ok? It could also be ar6000.ko as I only thought about wpa_supplicant because the .conf wasn't configured..

Attached Files

  • Attached File  wifi.zip   215bytes   4 downloads

Edited by Areo, 21 May 2012 - 07:37 PM.


#1786
MikhailM

MikhailM

    Regular

  • Members
  • PipPip
  • 101 posts
  • Gender:Male
  • Devices:Advent Vega, POV Mobii

View PostScanno, on 21 May 2012 - 07:06 PM, said:

The thing i want to do is to see if a certain file is on the sdcard so i can set a setting. Say the file /mnt/sdcard/vegacream/boot_usbhost_enable is there, then an echo 1 > /sys/usbbus/usb_host is done, so the usb port is set to host. This can help people who have touchscreen problems and want to recalibrate the screen.

Also i am thinking of something like: /mnt/sdcard/vegacream/set160dpi for people who want to have 160dpi instead of the 120dpi VegaCream standard has.... This can be done with a one-time script (editing the build.prop file).

Thank you, for trying to help us (those with insensitive screens). I have discovered that the POV Mobii Tegra 10.1 stock rom is set to host be default. Do not know if this helps - seeing how they do it. In other respects it is only a slightly modified stock rom (3D launches option, logo, etc..)

Scanno, to help with selecting host for touchscreen sufferers it might be best to use what Newbe5 did in his earlier VegaComb roms (might be 1.7) - holding down the back button after starting the boot process booted the tablet in host mode. (Re-tried it recently trying to cure my touchscreen before I finally learned to use ADB and your host command line.)

Edited by MikhailM, 22 May 2012 - 04:46 AM.


#1787
brucelee666

brucelee666

    Regular

  • Members
  • PipPip
  • 114 posts
  • Devices:Advent Vega

View PostScanno, on 21 May 2012 - 07:06 PM, said:

The thing i want to do is to see if a certain file is on the sdcard so i can set a setting. Say the file /mnt/sdcard/vegacream/boot_usbhost_enable is there, then an echo 1 > /sys/usbbus/usb_host is done, so the usb port is set to host. This can help people who have touchscreen problems and want to recalibrate the screen.

Also i am thinking of something like: /mnt/sdcard/vegacream/set160dpi for people who want to have 160dpi instead of the 120dpi VegaCream standard has.... This can be done with a one-time script (editing the build.prop file).

Scanno,

Try adding this to the end of vega_postboot.sh and also create a file named test1 (add text to file so its not 0bytes) on sdcard, quick hack but seems to work (not tested with usb_host but with another sys/devices/platform value and it changed that as required):-

i=0
while [ $i -le 100000 ]
do
if [ -e /sdcard/test1 ];
then
echo 1 > /sys/usbbus/usb_host
else
echo "leave as is"
fi
i='expr $i + 1'
done

Change the sdcard to location/filename of your choice, may also be able to reduce the value in while loop but this allows time for sdcard to mount and check file exists if it exists change value.

Edited by brucelee666, 22 May 2012 - 04:41 PM.


#1788
Scanno

Scanno

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 154 posts
  • Location:Arnhem
  • Devices:HTC Desire Z, POV Mobii Tegra

 Areo, on 21 May 2012 - 07:19 PM, said:


I don't think that is going to work. What you can do is what we did on HoneyIce. Alter settings.apk and put the extra option in it and let it reboot after that. That's way easier and maybe even better for the users. Because where can they select that they want to get 160dpi (I run it btw and I like it a lot more then 120)?

Kind Regards,
Areo

Edit: About wifi, it seems to come back alive in about 5-6 seconds after sleep mode. This is only with a changed wpa_supplicant.conf.

Edit2: Wifi now stays alive at sleep but is killed on wake up, then after 6-10 sec it comes back... Will pull a logcat

Edit3: Ran out of time, here is the configured wpa_supplicant.conf, nothing special. It seem to help with short sleeps. You can also try ctrl_interface=eth0 I find it working better. The problem is that it is killed when it wakes up, but sometimes also when sleeping. Then it gives the well known out of reach statement. Well we are 1 tiny step closer to fixing it with a configured wpa_supplicant.conf

Edit4: As the .conf is now ok in my opinion. I think the problem lies with the wpa_supplicant (/system/bin). Maybe we need to take a look at the source. Or is this all ok? It could also be ar6000.ko as I only thought about wpa_supplicant because the .conf wasn't configured..

Welcome back :-)
Regarding the source of wpa_supplicant... it is the adjusted source by eduardo. What i do know is that there seems to be something wrong with powermanagement. If you look into the logcat, there are lines with error/warnings regarding that. I guess that is the ar6000 driver that is causing the problems with the powermanagement.

Anyway in the meantime i have permission from the author of advanced wifi lock to include it into vegacream.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users