Support and General Use > Hardware

AGPTEK Rocker

<< < (38/85) > >>

wodz:

--- Quote from: Gavsgovenko on July 09, 2018, 12:44:22 PM ---Hi everybody! I find a bug. In all versions of rockbox screen always on, only backlight is off. You can see this problem on bright ligt, pictures still on screen ang if you choose a theme with moving pictures (jumping equaliser) you'll see mowing pictures when screen(should be, but not) off.

--- End quote ---

Let me guess - Benjie T6?

Gavsgovenko:
Yes, benjie t6.

titzesan:

--- Quote from: wodz on July 09, 2018, 02:58:03 PM ---
--- Quote from: Gavsgovenko on July 09, 2018, 12:44:22 PM ---Hi everybody! I find a bug. In all versions of rockbox screen always on, only backlight is off. You can see this problem on bright ligt, pictures still on screen ang if you choose a theme with moving pictures (jumping equaliser) you'll see mowing pictures when screen(should be, but not) off.

--- End quote ---

Let me guess - Benjie T6?

--- End quote ---

Just noticed the same behavior this morning in bright sunlight on my AgpTek Rocker (not the the Benjie model or firmware). UI is hard to see, but a white cover image can be noticed if you look closely.. Besides Rockbox the player is running the 1.2 OFW. So far didn't have the time to take a more detailed look.

alcaier:

--- Quote from: sduck on July 09, 2018, 01:16:55 AM ---Sorry for posting this, possibly a bit off topic. Forgive me! But I'm really hoping bluetooth will get enabled for this soon - I'm waiting eagerly. I have a new car that doesn't have an aux jack, but this player works with it quite well. And having rockbox on it would really make it complete - I've had rockbox on all my various DAPs since about 2003. So, any support I can give - just let me know. I'm not a coder, but I'm an excellent tester, and will happily buy pizzas and beer if that'll help. Thanks!

--- End quote ---
There is libasound_module_pcm_bluetooth.so and libasound_module_ctl_bluetooth.so on the system. I have no experience on alsa but this is pretty generic linux stuff e.g. https://github.com/mikebrady/shairport-sync/issues/200 .  I think wodz figured out how to make aplay work with this module. I think once one gets aplay to work with it you could modify rockbox to read alsa output device from file and then use a script to modify this file with bluetooth device mac. Ugly but I think it would be sufficient absent better ideas.


Here is a quick way to change alsa device. It looks for /etc/asound_device_override which could be created with a simple echo "alsa_devide" > /etc/asound_device_override from script . I have not even tried to compile this code.

--- Code: ---diff --git a/firmware/target/hosted/pcm-alsa.c b/firmware/target/hosted/pcm-alsa.c
index f6a3ffc..112779a 100644
--- a/firmware/target/hosted/pcm-alsa.c
+++ b/firmware/target/hosted/pcm-alsa.c
@@ -421,10 +421,21 @@ void pcm_play_dma_init(void)
 {
     int err;
     audiohw_preinit();
-
-    if ((err = snd_pcm_open(&handle, device, SND_PCM_STREAM_PLAYBACK, 0)) < 0)
+       
+       char device_override[64];
+       device_override[0] = 0;
+       FILE *fp = fopen("/etc/asound_device_override", "r");
+       if (fp && fgets(device_override, 64, fp))
+               device_override[strcspn(device_override, "\r\n")] = 0; // remove trailing \n
+               
+       fclose(fp);
+       
+       if (strlen(device_override) <= 1)
+               strcpy(device_override, device);
+
+    if ((err = snd_pcm_open(&handle, device_override, SND_PCM_STREAM_PLAYBACK, 0)) < 0)
     {
-        panicf("%s(): Cannot open device %s: %s\n", __func__, device, snd_strerror(err));
+        panicf("%s(): Cannot open device %s: %s\n", __func__, device_override, snd_strerror(err));
     }
 
     if ((err = snd_pcm_nonblock(handle, 1)))


--- End code ---

sg2002:
Since another Clip+ started dying, and getting them is harder and harder, I've bought a T6, to see if it's a good replacement for them.

Now I'm trying to get Rockbox running on it. First of all, I have a question about the build procedure on github ( https://github.com/wodz/rockbox-wodz/tree/agptek-rocker/tools/agptek_rocker/ ) - I have to provide an existing update.upt from the manufacturer and then it's gonna get patched, right?

Another thing is that while I'm struggling with manual build I've decicded to try the prebuild update files, there's one at head-fi ( https://www.head-fi.org/threads/the-shenzhen-benjie-bj-t6-agptek-rocker.834797/ ) and another on russian 4pda forum ( https://4pda.ru/forum/index.php?showtopic=900933 ). Neither of those worked for me, I get "Insert TF pls", "Updater V 1.1" and "v_v Failed".

Also my About This Player page reports that firmware version is 1.08Beta, maybe it's ther reaspon I cannot update?

Thanks for working on this, this port is what would probably keep rockbox alive.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version