10-27-2013, 11:14 PM | #16 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
REF: https://www.mobileread.com/forums/sho...d.php?t=189159
[root@kindle root]# [ -d /tmp/binfmt_misc ] || mkdir /tmp/binfmt_misc [root@kindle root]# insmod /mnt/us/extensions/midori/usr/modules/binfmt_misc.ko [root@kindle root]# mount -t binfmt_misc none /tmp/binfmt_misc REF: Code:
#!/bin/sh # enable automatic i386 program execution by the kernel ## We need to have insmodded and mounted by now... echo ':i386:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/mnt/us/extensions/midori/usr/bin/qemu-i386:' > /tmp/binfmt_misc/register echo ':i486:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x06\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/mnt/us/extensions/midori/usr/bin/qemu-i386:' > /tmp/binfmt_misc/register echo ":x86_64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x3e\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/mnt/us/extensions/midori/usr/bin/qemu-x86_64:" > /tmp/binfmt_misc/register Does this cover our linux use case? EDIT: Yes, Yes it does Last edited by twobob; 06-12-2014 at 01:40 PM. |
10-28-2013, 01:09 AM | #17 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Code:
[root@kindle root]# echo ':i386:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00:\xff\xff\xff\xff\x ff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/mnt/us/extensions/midori/usr/bin/qemu-i386:' > /tmp/binfmt_misc/register Quote:
result http://nspluginwrapper.org/ I'm looking at you... Last edited by twobob; 10-28-2013 at 02:52 AM. |
|
Advert | |
|
10-31-2013, 10:55 AM | #18 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Force refresh on Later devices
echo 1> /sys/devices/platform/mxc_epdc_fb/mxc_epdc_update attempting to get some output about the underlying device possibilities.. [root@kindle root]# echo -1> /sys/devices/platform/mxc_epdc_fb/mxc_epdc_debug Quote:
https://gitorious.org/efikamx/linux-.../mxc_epdc_fb.c derping the panning module (it has a 4 times Y size) [root@kindle root]# echo 0,200> /sys/devices/platform/mxc_epdc_fb/graphics/fb0/pan [root@kindle root]# echo 1> /sys/devices/platform/mxc_epdc_fb/mxc_epdc_update and back again [root@kindle root]# echo 0,0> /sys/devices/platform/mxc_epdc_fb/graphics/fb0/pan [root@kindle root]# echo 1> /sys/devices/platform/mxc_epdc_fb/mxc_epdc_update [root@kindle root]# cat /sys/devices/platform/mxc_epdc_fb/driver/module/parameters/waveform_to_use stored [root@kindle root]# cat /sys/devices/platform/mxc_epdc_fb/driver/module/parameters/use_builtin_cmap 0 [root@kindle root]# cat /sys/devices/platform/mxc_epdc_fb/driver/module/parameters/default_update_mode 1 [root@kindle root]# cat /sys/devices/platform/mxc_epdc_fb/driver/module/parameters/default_panel_hw_init 1 would THIS be a likely place to add our custom code??? https://gitorious.org/efikamx/linux-...pdc_fb.c#L1271 Last edited by twobob; 10-31-2013 at 11:45 AM. |
|
11-02-2013, 06:09 PM | #19 | ||||||||||||||||||||||||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
x:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
mplayer2-2.0-554-gf63dbad Quote:
fluxbox-1.3.2 Quote:
Quote:
gtk+-2.8.19 Quote:
aqualung# Quote:
postgresql-8.4-8.4.2 Quote:
perl-5.10.x Quote:
rt-4.2.0 Quote:
Quote:
Quote:
Quote:
Quote:
lighttpd-1.4.19 Quote:
Last edited by twobob; 06-15-2014 at 01:39 PM. |
||||||||||||||||||||||||
11-02-2013, 06:28 PM | #20 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
The mplayer/mplayer2/mpv buildsystem makes very heavy use of automagic deps. You can't use --enable-* flags without heavily tweaking the env & searchpaths so that it actually find & use said dep. The usual way is to just --disable-* the stuff you're sure you want to kill, and let the rest be automagically detected.
(See the mpv-build repo for an example of how the mpv guys do it to link against a static ffmpeg). |
Advert | |
|
11-02-2013, 06:47 PM | #21 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
--enable-static is an exception, and for some reason Code:
Install prefix: /mnt/us/extensions/mplayer2/usr Data directory: /mnt/us/extensions/mplayer2/usr/share/mplayer Config direct.: /mnt/us/extensions/mplayer2/usr/etc/mplayer Byte order: little-endian Optimizing for: That was what I was working towards.. |
|
11-02-2013, 07:02 PM | #22 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@twobob: can't remember, that's been zapped in mpv (possibly mplayer2, too).
On the other hand, ffmpeg should autodetect arm/neon properly, IIRC. |
11-02-2013, 08:30 PM | #23 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
been hunting around trying to get us the very best player/driver combo.
I think it will be a long road. Just a few missed nights sleep aren't going to cut it this time... but I'll post an updated video soon to show some progress / options. Thanks for the heads up. Last edited by twobob; 11-02-2013 at 08:36 PM. |
11-06-2013, 09:32 PM | #24 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Backport minitube 2.0 from sid to wheezy
http://forums.debian.net/viewtopic.php?f=20&t=104399 and more generally https://wiki.debian.org/SimpleBackportCreation Code:
────────────────────Warning: Phonon is not functional───────────────────────┐ │ Missing back-end for Phonon │ │ │ │ Applications using Phonon (the Qt 4 multimedia framework) will produce │ │ no audio or video output, because only a dummy Phonon back-end is │ │ installed on this system. This is typically an unintended │ │ configuration. │ │ │ │ To restore full Phonon multimedia capabilities, install one of the real │ │ Phonon back-end packages which are currently available for this system: │ │ │ │ phonon-backend-vlc (recommended), phonon-backend-gstreamer Quote:
Quote:
Last edited by twobob; 11-08-2013 at 08:54 PM. |
||
11-08-2013, 11:25 PM | #25 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Kindle 3 info burst
root@kindle:/# hwinfo Spoiler:
|
11-10-2013, 04:18 PM | #26 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
scanning corrupted FAT partition from linux
sudo dosfsck -w -l -a -v -t /dev/<sdd1> where <sdd1> is the device found from running the mount command Last edited by twobob; 11-10-2013 at 04:21 PM. |
11-14-2013, 08:06 AM | #27 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
make an ext3 partition and mount it.
Code:
dd if=/dev/zero of=/mnt/us/extensions/postgresql/data/data.ext3 bs=1M count=512 mkfs.ext3 /mnt/us/extensions/postgresql/data/data.ext3 tune2fs -i 0 -c 0 /mnt/us/extensions/postgresql/data/data.ext3 mkdir /mnt/us/extensions/postgresql/data/rt mount -o loop -t ext3 /mnt/us/extensions/postgresql/data/data.ext3 /mnt/us/extensions/postgresql/data/rt |
11-14-2013, 09:31 PM | #28 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Congratulations. RT is now installed.
You must now configure RT by editing /mnt/us/extensions/rt/usr/etc/RT_SiteConfig.pm. (You will definitely need to set RT's database password in /mnt/us/extensions/rt/usr/etc/RT_SiteConfig.pm before continuing. Not doing so could be very dangerous. Note that you do not have to manually add a database user or set up a database for RT. These actions will be taken care of in the next step.) After that, you need to initialize RT's database by running 'make initialize-database' tomorrow... EDIT: [root@kindle root]# /mnt/us/extensions/nginx/usr/sbin/nginx [root@kindle root]# pidof nginx 4169 4168 [root@kindle root]# /mnt/us/extensions/lighttpd/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -f /mnt/us/extensions/rt/usr/bin/rt Quote:
Last edited by twobob; 11-15-2013 at 11:32 AM. |
|
11-17-2013, 02:05 PM | #29 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Code:
131117:184913 cvm[1464]: D DailyScreensaverAdRotationController:DebugInfo::DailyScreensaverAdRotation is paused. So it can be done... interesting. |
06-11-2014, 11:24 PM | #30 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
http://rg3.github.io/youtube-dl/download.html
and Quote:
https://wiki.archlinux.org/index.php/Dwb dwb runs nicely with: Code:
#!/bin/sh ########################################################################### # # Twobob redefined starter for a kindle touch application. # ########################################################################### #setup helpful variables... APP=dwb EXTENSION=/mnt/us/extensions export LD_LIBRARY_PATH=${EXTENSION}/dwb/lib:/usr/lib:/lib #( same command for PW + Touch so ditch the detection ) # PLATFORM="$(cat /sys/devices/platform/mxc_epdc_fb/graphics/fb0/modes)" SSSTATE=`lipc-get-prop com.lab126.powerd preventScreenSaver` cd /mnt/us/extensions/$APP # be certin we only have one instance killall -9 $APP &> /dev/null usleep 500 # prevent SS from bothering us mid app. lipc-set-prop com.lab126.powerd preventScreenSaver 1 # Run it ( same command for PW + Touch so ditch the detection ) GTK_IM_MODULE=kindle \ GDK_PIXBUF_MODULE_FILE=/mnt/us/extensions/$APP/bin/pixbuf/gdk-pixbuf.loaders \ ${EXTENSION}/$APP/bin/$APP -e 0 http://google.com lipc-set-prop com.lab126.powerd preventScreenSaver "$SSSTATE" I have lab126LayerLogic.lua and I replaced the code in it like: Code:
function parseWindowName(str) local str = str local charSeparator = '_' -- validate --if str == nil or not stringStartsWith(str, "L:") then -- return nil --end Code:
if str == nil then return nil end if not stringStartsWith(str, "L:") then -- Debug llog.info("WindowManager", "bad-client-name", "winName=" .. tostring(str), "report-untidy") -- exact matches only, Ditch the system stuff, this prevents thing like "Gtkboard" matching "kb" -- I think replacing this with some \bword\b boundary matching might work better if (str == "kb") or (str == "webreader") or (str == "pillowd") then return nil else -- we made it this far - let tidy up likely corner cases -- tidy up spaces and other potentially magic characters str = string.gsub(str, "%s+", "-") str = string.gsub(str, "%%+", "-") str = string.gsub(str, "%^+", "-") str = string.gsub(str, "%$+", "-") str = string.gsub(str, "%(+", "-") str = string.gsub(str, "%)+", "-") str = string.gsub(str, "%[+", "-") str = string.gsub(str, "%]+", "-") str = string.gsub(str, "%*+", "-") str = string.gsub(str, "%?+", "-") str = string.gsub(str, "%++", "-") str = string.gsub(str, "%_+", "-") str = string.gsub(str, "%/+", "-") str = string.gsub(str, "%:+", "-") -- Debug llog.info("WindowManager", "good-client-name", "winName=" .. tostring(str), "post-tidy") str = "L:A_N:application_ID:" .. tostring(str) .. "_O:R_PC:N" -- Debug llog.info("WindowManager", "title", tostring(str) , " ✔") end end Code:
local entries = {} for splitStr in stringSplit(str, '_') do log("splitStr is " .. splitStr) The greyed bits show where I edited from and to. and rc.lua is: Code:
package.path = "/var/tmp/root/.config/awesome/?.lua;" .. package.path dofile("/etc/xdg/awesome/rc.lua") local lipcH, errNum, errMsg = lipc.init("com.lab126.winmgr.extra") if not lipcH then log ("!!!!!!!!!!!failed to init lipc " .. tostring(errNum) .. ", " .. errMsg) else lipcH:register_string_property("restart", "w").listener = awesome.restart awesome.add_signal("exit", lipcH:close) end Quote:
however killall awesome works fine. after that starting the ./dwb.sh seems to work with no error or titling fuss. not sure how to get this working really with the keyboards as it is very keyboard heavy. happy to leave that to someone else. I trimmed about 8mb of system included libs... but its a vaguely interesting idea I thought and was easy to build for the touch. and PW too therefore. but as I said "keyboard heavy interfaces" not great, however the mplayer youtube hookup being extracted out into say a wget and an ncurses interface ditching dwb could be workable, would be intersting to see mplayer handle that. it did elegantly handle dithering one time before albeit not perfectly reliable. worth a pop. sticking point in python but i believe we have that. Anyone think this is not insane? dunnno. might be cool. various aspects of it might be. some not so much. still needs 58mb! of supporting libs built like this... not ideal. And The keyboard would need a double finger popup-popdown code wrapper or something I suppose. I didnt bother wrapping it as an extension as its not finished. and its too big to run easily. or repack on here. however those libs included once to justify a few builds might be worth it. dunno. could probably be built smarter. all that said; the general "Application Fronting" principle seems to work nicely now I revisit it. which is worth noting. Im sure baf posting a much simpler LUA solution but I couldnt find it yet. Last edited by twobob; 06-12-2014 at 01:37 PM. |
||
Tags |
hello world, kindle, languages, titbits, twobob |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free (K) World's Collider: A Shared-World Anthology [Science Fiction/Horror] | kg3 | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 09-14-2012 06:06 PM |
Kindle free book: Hungarian Cookbook: Old World Recipes for New World Cooks, Expanded | greencat | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 06-15-2011 04:07 AM |
UK/DE Kindle free book: World Kitchen: World Recipes | greencat | Deals and Resources (No Self-Promotion or Affiliate Links) | 1 | 06-02-2011 10:53 AM |
Old World and New World Computing | kjk | Apple Devices | 0 | 01-31-2010 02:09 PM |