[USB-HOST] Contour ShuttleXpress support - Nook Color Android Development

I'm trying to get my Countour Shuttlexpress working with usb host ( using cm7 nightlies )
I've already posted some of this in the usb-host thread but seems there is not much devs traffic there LINK
So I've decided to open a new thread hoping for some interest and maybe info for others who want to write/port their own usb-host drivers
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Eventually what I'm trying to achieve is :
Jog Wheel - Controls system/media volume
Shuttle Knob - PREV/NEXT song on PowerAmp app
Buttons - Launch Apps , Jump To Screen #n , Run Terminal Commands
That's on the basic level of things
I don't have any coding skills in Linux ( I do know some java and c/c++ And I'm a fast learner )
In the past few days I've been setting up my first developing enviorment with Ubuntu 10.04 and learned a couple of things about android coding
Lets get back to the device
For now it's recognized as an HID device , and I can use getevent to get each function specific code
But nothing is mapped to any real function on the nook
Here is some info from the nook :
DMESG Log :
Code:
<6>usb 1-1.2: new low speed USB device using musb_hdrc and address 4
<7>usb 1-1.2: skipped 1 descriptor after interface
<7>usb 1-1.2: default language 0x0409
<3>usb 1-1.2: device v0b33 p0020 is not supported
<7>usb 1-1.2: udev 4, busnum 1, minor = 3
<6>usb 1-1.2: New USB device found, idVendor=0b33, idProduct=0020
<6>usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>usb 1-1.2: Product: ShuttleXpress
<6>usb 1-1.2: Manufacturer: Contour Design
<7>usb 1-1.2: uevent
<7>usb 1-1.2: usb_probe_device
<6>usb 1-1.2: configuration #1 chosen from 1 choice
<7>usb 1-1.2: adding 1-1.2:1.0 (config #1, interface 0)
<7>usb 1-1.2:1.0: uevent
<7>usbserial_generic 1-1.2:1.0: usb_probe_interface
<7>usbserial_generic 1-1.2:1.0: usb_probe_interface - got id
<7>usbhid 1-1.2:1.0: usb_probe_interface
<7>usbhid 1-1.2:1.0: usb_probe_interface - got id
<6>input: Contour Design ShuttleXpress as /devices/platform/musb_hdrc/usb1/1-1/1-1.2/1-1.2:1.0/input/input4
<6>generic-usb 0003:0B33:0020.0001: input: USB HID v1.10 Device [Contour Design ShuttleXpress] on usb-musb_hdrc-1.2/input0
<7>drivers/usb/core/inode.c: creating file '004'
<1>##- Data length: 2
/proc/bus/input/devices
Code:
I: Bus=0003 Vendor=0b33 Product=0020 Version=0110
N: Name="Contour Design ShuttleXpress"
P: Phys=usb-musb_hdrc-1.2/input0
S: Sysfs=/devices/platform/musb_hdrc/usb1/1-1/1-1.2/1-1.2:1.0/input/input7
U: Uniq=
H: Handlers=mouse3 event7
B: EV=17
B: KEY=1fff 0 0 0 0 0 0 0 0
B: REL=180
B: MSC=10
*the logs are from different sessions
using "getevent /dev/input/event7" I captured the events and isolated them
Buttons : ( numbered from left to right )
1.
Code:
Press -
0004 0004 00090005
0001 0104 00000001
0000 0000 00000000
Release -
0004 0004 00090005
0001 0104 00000000
0000 0000 00000000
2.
Code:
Press -
0004 0004 00090006
0001 0105 00000001
0000 0000 00000000
Release -
0004 0004 00090006
0001 0105 00000000
0000 0000 00000000
3.
Code:
Press -
0004 0004 00090007
0001 0106 00000001
0000 0000 00000000
Release -
0004 0004 00090007
0001 0106 00000000
0000 0000 00000000
4.
Code:
Press -
0004 0004 00090008
0001 0107 00000001
0000 0000 00000000
Release -
0004 0004 00090008
0001 0107 00000000
0000 0000 00000000
5.
Code:
Press -
0004 0004 00090009
0001 0108 00000001
0000 0000 00000000
Release -
0004 0004 00090009
0001 0108 00000000
0000 0000 00000000
Jog Wheel :
Code:
From -
0002 0007 00000001
0000 0000 00000000
To -
0002 0007 000000ff
0000 0000 00000000
Shuttle Knob :
Code:
Full right -
0002 0008 00000007
0002 0007 00000001
0000 0000 00000000
Full left -
0002 0008 fffffff9
0002 0007 00000001
0000 0000 00000000
So , I have a few ideas on how to do it and I thought you might help me figure out the best way and guide me through it :
Using Tasker and write a script using Locale Execute plugin with getevent & other commands - Probably highly in-efficient and maybe slow?
Write an app to run in the background , intercept the events and execute commands every x ms? How much is needed for a quick response?
Write a driver ( or kernel module? ) for the device
Maybe I can use the HID driver to do that?
Port one of the sources I listed down to Android?
Another thing I haven't thought of?
I have found a couple of things that might help
powermate.c in dalingrin's kernel seems to contain some code for it but I couldn't find any real thing that it does to it besides define the device
GITHUB Link
Here are some source codes for Linux ( which I thought at first to be drivers but they seem to be handlers/applications )
https://init.linpro.no/pipermail/skolelinux.no/cinelerra/2006-March/005665.html
http://www.reynwar.net/gnuradio/epydoc/gnuradio.wxgui.powermate-pysrc.html
Can I use the code from USB Mouse support and adapt it for my own input device? will it even work on CM7 since it's built for Iconia?
I've also looked into usbled.c in the kernel , comparing it to the original code from here http://www.linuxjournal.com/article/7353
It seems pretty much the same , so maybe porting the handler is the best and easiest way?
Any help would be appreciated , in the last 3 days I've read so much on linux/android developing and still feels like I know nothing
Thanks ,
Gutz

will it work with the shuttle pro 2, too ?

There is a code for the shuttle pro and v2 as well here
http://www.reynwar.net/gnuradio/epydoc/gnuradio.wxgui.powermate-pysrc.html
Its an handler written with python , I need to find out if I can port this to Android
If I'll eventually port some of the code from there I'll try to include the v2 code aswell..

Did you get this going? Would be very interested.

oh memories
I did get this going eventually pretty easily using an app called "usb/bt joystick center"
I tried looking for it but it's not on the play store anymore , a google search did came up with some apk sources so just try them out
If you need any help pm me - I haven't touched it in years but I might remember / can dig up some old files to help
Good luck

Any news on that old topic ?
I just bought a ShuttleXpress for a Nexus in car project thinking it would be straightforward, but it seems that its not..

hassbruk said:
Any news on that old topic ?
I just bought a ShuttleXpress for a Nexus in car project thinking it would be straightforward, but it seems that its not..
Click to expand...
Click to collapse
@hassbruk I have written a driver for this, which is implemented in my controller app. Checkout my github (freshollie) for more info.

freshollie said:
@hassbruk I have written a driver for this, which is implemented in my controller app. Checkout my github (freshollie) for more info.
Click to expand...
Click to collapse
Hi Freshollie sorry to wake up this thread after so many years.. Anyway to help how to set this up in an android tablet ?

Related

Chinese gamepad PS3 bt (wired connected) not recognized (android box inphic i5)

Hi
I have a Inphic i5 android box (SoC AMLogic s805) without bluetooth. I have tried to connect a chinese gamepad ps3 via USB cable (wired).
The problem is that it does not recognize it. Analyzing the output I get this HID:
Device Info
Device Path: /dev/bus/usb/002/008
Device Class: Use class information in the Interface Descriptors (0x0)
Vendor ID: 054c
Vendor Name: Sony Corp.
Product ID: 07d8
Product Name: not in db
Interfaces
Interface #0
Class: Human Interaction Device (0x3)
Endpoint: #0
Address : 2 (000000010)
Number : 2
Direction : Outbound (0x0)
Type : Intrrupt (0x3)
Poll Interval : 10
Max Packet Size: 64
Attributes : 000000011
Endpoint: #1
Address : 129 (10000001)
Number : 1
Direction : Inbound (0x80)
Type : Intrrupt (0x3)
Poll Interval : 10
Max Packet Size: 64
Attributes : 000000011
Can you help me?

Add support for HP Accelerometers on laptops

May sound funny but almost all HP laptops (my 2012 laptop has it) have an accelerometer. Linux supports it and uses it as a joystick (which annoys some people when playing games) but Remix OS doesn't. I cannot use http://sandbox.juurlink.org/accelerometer/ which works on my Nexus 9 (running stock Android Marshmallow) but not in Linux or Remix OS. Can Remix OS add support for the accelerometer in the next release
Suici Doga said:
May sound funny but almost all HP laptops (my 2012 laptop has it) have an accelerometer. Linux supports it and uses it as a joystick (which annoys some people when playing games) but Remix OS doesn't. I cannot use http://sandbox.juurlink.org/accelerometer/ which works on my Nexus 9 (running stock Android Marshmallow) but not in Linux or Remix OS. Can Remix OS add support for the accelerometer in the next release
Click to expand...
Click to collapse
It would probably help if you can identify the chip/driver that is being used.
Perhaps also pulling a dsdt would help them add it; if possible.
HypoTurtle said:
It would probably help if you can identify the chip/driver that is being used.
Perhaps also pulling a dsdt would help them add it; if possible.
Click to expand...
Click to collapse
My laptop is a HP Pavilion g7 2269wm with an AMD A8-4500M.
And how can I show you the DSDT. Is there any Linux command or something (I have Linux installed)
Suici Doga said:
My laptop is a HP Pavilion g7 2269wm with an AMD A8-4500M.
And how can I show you the DSDT. Is there any Linux command or something (I have Linux installed)
Click to expand...
Click to collapse
The 'recompompiling it yourself' section here, should get you a readable dsdt.
Also as your on linux (and the accelerometer works, right?):
lsmod should show all the modules inc. for accel...
lspci or lshw might show the chip name/type.
HypoTurtle said:
The 'recompompiling it yourself' section here, should get you a readable dsdt.
Also as your on linux (and the accelerometer works, right?):
lsmod should show all the modules inc. for accel...
lspci or lshw might show the chip name/type.
Click to expand...
Click to collapse
Output of lsmod
Code:
Module Size Used by
xt_addrtype 16384 2
br_netfilter 24576 0
dm_thin_pool 61440 1
dm_persistent_data 65536 1 dm_thin_pool
dm_bio_prison 16384 1 dm_thin_pool
dm_bufio 28672 1 dm_persistent_data
libcrc32c 16384 1 dm_persistent_data
ipt_MASQUERADE 16384 4
nf_nat_masquerade_ipv4 16384 1 ipt_MASQUERADE
iptable_nat 16384 1
nf_nat_ipv4 16384 1 iptable_nat
nf_nat 24576 2 nf_nat_ipv4,nf_nat_masquerade_ipv4
nf_conntrack_ipv4 16384 3
nf_defrag_ipv4 16384 1 nf_conntrack_ipv4
xt_conntrack 16384 2
nf_conntrack 106496 5 nf_nat,nf_nat_ipv4,xt_conntrack,nf_nat_masquerade_ipv4,nf_conntrack_ipv4
ipt_REJECT 16384 2
nf_reject_ipv4 16384 1 ipt_REJECT
xt_CHECKSUM 16384 1
iptable_mangle 16384 1
xt_tcpudp 16384 6
bridge 110592 1 br_netfilter
stp 16384 1 bridge
llc 16384 2 stp,bridge
nvram 16384 0
msr 16384 0
ip6table_filter 16384 0
ip6_tables 28672 1 ip6table_filter
iptable_filter 16384 1
ip_tables 28672 3 iptable_filter,iptable_mangle,iptable_nat
ebtable_nat 16384 0
ebtables 36864 1 ebtable_nat
x_tables 36864 12 ip6table_filter,xt_CHECKSUM,ip_tables,xt_tcpudp,ipt_MASQUERADE,xt_conntrack,iptable_filter,ebtables,ipt_REJECT,iptable_mangle,ip6_tables,xt_addrtype
fglrx 13512704 139
pci_stub 16384 1
vboxpci 24576 0
vboxnetadp 28672 0
vboxnetflt 28672 0
vboxdrv 458752 3 vboxnetadp,vboxnetflt,vboxpci
zram 24576 4
lz4_compress 16384 1 zram
uvcvideo 90112 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_core 53248 1 uvcvideo
v4l2_common 16384 1 videobuf2_core
videodev 159744 3 uvcvideo,v4l2_common,videobuf2_core
media 24576 2 uvcvideo,videodev
joydev 20480 0
rtsx_pci_ms 20480 0
memstick 20480 1 rtsx_pci_ms
rtsx_pci_sdmmc 24576 0
hp_wmi 16384 0
sparse_keymap 16384 1 hp_wmi
kvm_amd 61440 0
kvm 479232 1 kvm_amd
snd_hda_codec_idt 61440 1
crct10dif_pclmul 16384 0
snd_hda_codec_generic 69632 1 snd_hda_codec_idt
crc32_pclmul 16384 0
snd_hda_codec_hdmi 53248 1
aesni_intel 172032 0
aes_x86_64 20480 1 aesni_intel
snd_hda_intel 36864 6 snd_hda_codec_hdmi
lrw 16384 1 aesni_intel
snd_hda_controller 32768 1 snd_hda_intel
gf128mul 16384 1 lrw
dm_multipath 24576 0
glue_helper 16384 1 aesni_intel
scsi_dh 16384 1 dm_multipath
ablk_helper 16384 1 aesni_intel
snd_hda_codec 143360 5 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
cryptd 20480 2 aesni_intel,ablk_helper
snd_hwdep 20480 1 snd_hda_codec
snd_pcm 106496 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_seq_midi 16384 0
snd_seq_midi_event 16384 1 snd_seq_midi
snd_rawmidi 32768 1 snd_seq_midi
psmouse 118784 0
snd_seq 65536 2 snd_seq_midi_event,snd_seq_midi
serio_raw 16384 0
r8169 81920 0
k10temp 16384 0
mii 16384 1 r8169
snd_seq_device 16384 3 snd_seq,snd_rawmidi,snd_seq_midi
rtsx_pci 49152 2 rtsx_pci_ms,rtsx_pci_sdmmc
snd_timer 32768 2 snd_pcm,snd_seq
shpchp 40960 0
bnep 20480 2
snd 86016 21 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
i2c_piix4 24576 0
soundcore 16384 2 snd,snd_hda_codec
amd_iommu_v2 20480 1 fglrx
rfcomm 69632 0
bluetooth 491520 10 bnep,rfcomm
hp_accel 28672 0
lis3lv02d 20480 1 hp_accel
input_polldev 16384 1 lis3lv02d
hp_wireless 16384 0
mac_hid 16384 0
parport_pc 32768 0
ppdev 20480 0
lp 20480 0
parport 45056 3 lp,ppdev,parport_pc
binfmt_misc 20480 1
nls_iso8859_1 16384 1
ahci 36864 4
libahci 32768 1 ahci
wmi 20480 1 hp_wmi
video 20480 0
Output of lspci
Code:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Trinity [Radeon HD 7640G]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Trinity HDMI Audio Controller
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 03)
00:10.1 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 03)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode]
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 14)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40)
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0)
00:15.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 1)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 5
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 05)
Output of sudo lshw
Code:
hp-pavilion-g7
description: Notebook
product: HP Pavilion g7 Notebook PC (C3Q83UA#ABA)
vendor: Hewlett-Packard
version: 0880110000305D10000620100
serial: **********
width: 64 bits
capabilities: smbios-2.7 dmi-2.7 vsyscall32
configuration: boot=normal chassis=notebook family=103C_5335KV G=N L=CON B=HP S=PAV sku=C3Q83UA#ABA uuid=35434432-3436-3253-4659-84349789F64E
*-core
description: Motherboard
product: 184B
vendor: Hewlett-Packard
physical id: 0
version: 57.2F
serial: **************
slot: Base Board Chassis Location
*-firmware
description: BIOS
vendor: Insyde
physical id: 0
version: F.15
date: 10/04/2012
size: 1MiB
capacity: 4032KiB
capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int9keyboard int10video acpi usb biosbootspecification uefi
*-memory
description: System Memory
physical id: 1b
slot: System board or motherboard
size: 6GiB
*-bank:0
description: SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
product: HMT325S6CFR8C-PB
vendor: Hynix
physical id: 0
serial: ********
slot: Bottom-Slot 1(top)
size: 2GiB
width: 64 bits
clock: 1600MHz (0.6ns)
*-bank:1
description: SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
product: 16KTF51264HZ-1G6M1
vendor: Micron Technology
physical id: 1
serial: ********
slot: Bottom-Slot 2(under)
size: 4GiB
width: 64 bits
clock: 1600MHz (0.6ns)
*-cpu
description: CPU
product: AMD A8-4500M APU with Radeon(tm) HD Graphics
vendor: Advanced Micro Devices [AMD]
physical id: 24
bus info: [email protected]
version: AMD A8-4500M APU with Radeon(tm) HD Graphics
serial: NotSupport
slot: Socket FT1
size: 1600MHz
capacity: 1900MHz
width: 64 bits
clock: 100MHz
capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb arat cpb hw_pstate npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold vmmcall bmi1 cpufreq
configuration: cores=4 enabledcores=4 threads=4
*-cache:0
description: L1 cache
physical id: 25
slot: L1 Cache
size: 192KiB
capacity: 192KiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
*-cache:1
description: L2 cache
physical id: 26
slot: L2 Cache
size: 4MiB
capacity: 4MiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
*-pci:0
description: Host bridge
product: Family 15h (Models 10h-1fh) Processor Root Complex
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 100
bus info: [email protected]:00:00.0
version: 00
width: 32 bits
clock: 66MHz
configuration: latency=32
*-display
description: VGA compatible controller
product: Trinity [Radeon HD 7640G]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 1
bus info: [email protected]:00:01.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=fglrx_pci latency=0
resources: irq:38 memory:e0000000-efffffff ioport:3000(size=256) memory:f0200000-f023ffff
*-multimedia:0
description: Audio device
product: Trinity HDMI Audio Controller
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 1.1
bus info: [email protected]:00:01.1
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm pciexpress msi bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:37 memory:f0244000-f0247fff
*-usb:0
description: USB controller
product: FCH USB XHCI Controller
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 10
bus info: [email protected]:00:10.0
version: 03
width: 64 bits
clock: 33MHz
capabilities: pm msi msix pciexpress xhci bus_master cap_list
configuration: driver=xhci_hcd latency=0
resources: irq:18 memory:f0248000-f0249fff
*-usb:1
description: USB controller
product: FCH USB XHCI Controller
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 10.1
bus info: [email protected]:00:10.1
version: 03
width: 64 bits
clock: 33MHz
capabilities: pm msi msix pciexpress xhci bus_master cap_list
configuration: driver=xhci_hcd latency=0
resources: irq:17 memory:f024a000-f024bfff
*-storage
description: SATA controller
product: FCH SATA Controller [AHCI mode]
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 11
bus info: [email protected]:00:11.0
version: 00
width: 32 bits
clock: 66MHz
capabilities: storage msi ahci_1.0 bus_master cap_list
configuration: driver=ahci latency=64
resources: irq:34 ioport:3118(size=8) ioport:3124(size=4) ioport:3110(size=8) ioport:3120(size=4) ioport:3100(size=16) memory:f0250000-f02507ff
*-usb:2
description: USB controller
product: FCH USB OHCI Controller
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 12
bus info: [email protected]:00:12.0
version: 11
width: 32 bits
clock: 66MHz
capabilities: ohci bus_master
configuration: driver=ohci-pci latency=32
resources: irq:18 memory:f024f000-f024ffff
*-usb:3
description: USB controller
product: FCH USB EHCI Controller
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 12.2
bus info: [email protected]:00:12.2
version: 11
width: 32 bits
clock: 66MHz
capabilities: pm debug ehci bus_master cap_list
configuration: driver=ehci-pci latency=32
resources: irq:17 memory:f024e000-f024e0ff
*-usb:4
description: USB controller
product: FCH USB OHCI Controller
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 13
bus info: [email protected]:00:13.0
version: 11
width: 32 bits
clock: 66MHz
capabilities: ohci bus_master
configuration: driver=ohci-pci latency=32
resources: irq:18 memory:f024d000-f024dfff
*-usb:5
description: USB controller
product: FCH USB EHCI Controller
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 13.2
bus info: [email protected]:00:13.2
version: 11
width: 32 bits
clock: 66MHz
capabilities: pm debug ehci bus_master cap_list
configuration: driver=ehci-pci latency=32
resources: irq:17 memory:f024c000-f024c0ff
*-serial UNCLAIMED
description: SMBus
product: FCH SMBus Controller
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 14
bus info: [email protected]:00:14.0
version: 14
width: 32 bits
clock: 66MHz
configuration: latency=0
*-multimedia:1
description: Audio device
product: FCH Azalia Controller
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 14.2
bus info: [email protected]:00:14.2
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm bus_master cap_list
configuration: driver=snd_hda_intel latency=32
resources: irq:16 memory:f0240000-f0243fff
*-isa
description: ISA bridge
product: FCH LPC Bridge
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 14.3
bus info: [email protected]:00:14.3
version: 11
width: 32 bits
clock: 66MHz
capabilities: isa bus_master
configuration: latency=0
*-pci:0
description: PCI bridge
product: FCH PCI Bridge
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 14.4
bus info: [email protected]:00:14.4
version: 40
width: 32 bits
clock: 66MHz
capabilities: pci subtractive_decode bus_master
*-pci:1
description: PCI bridge
product: Hudson PCI to PCI bridge (PCIE port 0)
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 15
bus info: [email protected]:00:15.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:16 memory:f0100000-f01fffff
*-generic
description: Unassigned class
product: RTS5229 PCI Express Card Reader
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: [email protected]:03:00.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=rtsx_pci latency=0
resources: irq:35 memory:f0100000-f0100fff
*-pci:2
description: PCI bridge
product: Hudson PCI to PCI bridge (PCIE port 1)
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 15.1
bus info: [email protected]:00:15.1
version: 00
width: 32 bits
clock: 33MHz
capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:16 ioport:2000(size=4096) memory:f0000000-f00fffff
*-network
description: Ethernet interface
product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: [email protected]:04:00.0
logical name: eth0
version: 05
serial: 84:34:97:89:f6:4e
size: 100Mbit/s
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl_nic/rtl8105e-1.fw ip=192.168.1.3 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
resources: irq:36 ioport:2000(size=256) memory:f0004000-f0004fff memory:f0000000-f0003fff
*-pci:1
description: Host bridge
product: Family 15h (Models 10h-1fh) Processor Function 0
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 101
bus info: [email protected]:00:18.0
version: 00
width: 32 bits
clock: 33MHz
*-pci:2
description: Host bridge
product: Family 15h (Models 10h-1fh) Processor Function 1
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 102
bus info: [email protected]:00:18.1
version: 00
width: 32 bits
clock: 33MHz
*-pci:3
description: Host bridge
product: Family 15h (Models 10h-1fh) Processor Function 2
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 103
bus info: [email protected]:00:18.2
version: 00
width: 32 bits
clock: 33MHz
*-pci:4
description: Host bridge
product: Family 15h (Models 10h-1fh) Processor Function 3
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 104
bus info: [email protected]:00:18.3
version: 00
width: 32 bits
clock: 33MHz
configuration: driver=k10temp
resources: irq:0
*-pci:5
description: Host bridge
product: Family 15h (Models 10h-1fh) Processor Function 4
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 105
bus info: [email protected]:00:18.4
version: 00
width: 32 bits
clock: 33MHz
*-pci:6
description: Host bridge
product: Family 15h (Models 10h-1fh) Processor Function 5
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 106
bus info: [email protected]:00:18.5
version: 00
width: 32 bits
clock: 33MHz
*-scsi:0
physical id: 1
logical name: scsi0
capabilities: emulated
*-disk
description: ATA Disk
product: WDC WD5000BPVT-2
vendor: Western Digital
physical id: 0.0.0
bus info: [email protected]:0.0.0
logical name: /dev/sda
version: 1A02
serial: WD-************
size: 465GiB (500GB)
capabilities: gpt-1.00 partitioned partitioned:gpt
configuration: ansiversion=5 guid=5781c95b-9190-4304-9539-224a9e78de1a sectorsize=4096
*-volume:0
description: Windows NTFS volume
vendor: Windows
physical id: 1
bus info: [email protected]:0.0.0,1
logical name: /dev/sda1
version: 3.1
serial: a625-3aa2
size: 448MiB
capacity: 449MiB
capabilities: boot precious readonly hidden nomount ntfs initialized
configuration: clustersize=4096 created=2016-01-27 10:26:55 filesystem=ntfs label=Recovery modified_by_chkdsk=true mounted_on_nt4=true name=Basic data partition resize_log_file=true state=dirty upgrade_on_mount=true
*-volume:1
description: Windows FAT volume
vendor: MSDOS5.0
physical id: 2
bus info: [email protected]:0.0.0,2
logical name: /dev/sda2
logical name: /boot
version: FAT32
serial: 8827-0cf3
size: 93MiB
capacity: 99MiB
capabilities: boot fat initialized
configuration: FATs=2 filesystem=fat mount.fstype=vfat mount.options=rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro name=EFI system partition state=mounted
*-volume:2
description: reserved partition
vendor: Windows
physical id: 3
bus info: [email protected]:0.0.0,3
logical name: /dev/sda3
serial: d5135be5-3a94-432f-9228-2b782bf95675
capacity: 15MiB
capabilities: nofs
configuration: name=Microsoft reserved partition
*-volume:3
description: Windows NTFS volume
vendor: Windows
physical id: 4
bus info: [email protected]:0.0.0,4
logical name: /dev/sda4
version: 3.1
serial: 8c88fa5b-7154-2144-9a01-fa9151d94564
size: 67GiB
capacity: 67GiB
capabilities: ntfs initialized
configuration: clustersize=4096 created=2016-01-27 10:30:48 filesystem=ntfs label=Windows 10 name=Basic data partition state=clean
*-volume:4
description: Windows NTFS volume
vendor: Windows
physical id: 5
bus info: [email protected]:0.0.0,5
logical name: /dev/sda5
logical name: /mnt/storage
version: 3.1
serial: 7eb3baff-688c-2d4c-9da8-86b9f9bb829e
size: 297GiB
capacity: 297GiB
capabilities: ntfs initialized
configuration: clustersize=4096 created=2016-03-17 10:15:55 filesystem=ntfs label=Data modified_by_chkdsk=true mount.fstype=fuseblk mount.options=rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096 mounted_on_nt4=true name=Basic data partition resize_log_file=true state=mounted upgrade_on_mount=true
*-volume:5
description: EXT4 volume
vendor: Linux
physical id: 6
bus info: [email protected]:0.0.0,6
logical name: /dev/sda6
logical name: /
logical name: /var/lib/docker/devicemapper
version: 1.0
serial: 74b57e08-ec17-4371-9d5d-f6270880fb90
size: 48GiB
capabilities: journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
configuration: created=2016-03-30 07:30:35 filesystem=ext4 lastmountpoint=/ modified=2016-05-31 08:16:56 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,data=ordered mounted=2016-05-31 08:16:56 state=mounted
*-volume:6
description: Linux swap volume
vendor: Linux
physical id: 7
bus info: [email protected]:0.0.0,7
logical name: /dev/sda7
version: 1
serial: 2471c065-9558-441e-a0a0-a5761a1b75c2
size: 8197MiB
capacity: 8199MiB
capabilities: nofs swap initialized
configuration: filesystem=swap pagesize=4095
*-volume:7
description: EXT4 volume
vendor: Linux
physical id: 8
bus info: [email protected]:0.0.0,8
logical name: /dev/sda8
version: 1.0
serial: 033e8fc7-4cfe-9454-bc59-df7329ca862d
size: 17GiB
capabilities: journaled extended_attributes large_files extents ext4 ext2 initialized
configuration: filesystem=ext4 label=Remix-OS lastmountpoint=/android/system modified=2016-05-28 06:55:43 mounted=2016-05-31 18:47:00 state=clean
*-scsi:1
physical id: 2
logical name: scsi1
capabilities: emulated
*-cdrom
description: DVD-RAM writer
product: DVDRAM GT50N
vendor: hp
physical id: 0.0.0
bus info: [email protected]:0.0.0
logical name: /dev/cdrom
logical name: /dev/sr0
version: MP01
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=nodisc
*-battery
description: Lithium Ion Battery
product: MU06047
vendor: 13-42
physical id: 1
slot: Primary
capacity: 47520mWh
configuration: voltage=10.8V
Is there any private information I should remove.
DSDT file link : https://drive.google.com/file/d/0B08cCnnU-zt-VjNreENLbUZ3b00/view?usp=sharing
Suici Doga said:
Is there any private information I should remove.
DSDT file link : https://drive.google.com/file/d/0B08cCnnU-zt-VjNreENLbUZ3b00/view?usp=sharing
Click to expand...
Click to collapse
I don't think there's any private info there, but feel free to remove. Are you sure it's actually an accelerometer or could it be just the hinge switch?
As I'm not seeing anything pointing to an accelerometer there, but there is a module for the hinge switch (hp_wmi).
Edit. Sorry missed hp_accel; the driver for the chip lis3lv02d should be included...
What does lsmod report from RemixOS?
HypoTurtle said:
I don't think there's any private info there, but feel free to remove. Are you sure it's actually an accelerometer or could it be just the hinge switch?
As I'm not seeing anything pointing to an accelerometer there, but there is a module for the hinge switch (hp_wmi).
Edit. Sorry missed hp_accel; the driver for the chip lis3lv02d should be included...
What does lsmod report from RemixOS?
Click to expand...
Click to collapse
Some HP laptops have an accelerometer which is for HDD protection I guess. If it detects a high speed movement, the HDD stops and it prevents the HDD from the damage. (Like if you drop your laptop...for example, you will be able to recover all the data most likely.)
And i guess it's still possible to use that thing for other uses with a proper driver/code.
HypoTurtle said:
I don't think there's any private info there, but feel free to remove. Are you sure it's actually an accelerometer or could it be just the hinge switch?
As I'm not seeing anything pointing to an accelerometer there, but there is a module for the hinge switch (hp_wmi).
Edit. Sorry missed hp_accel; the driver for the chip lis3lv02d should be included...
What does lsmod report from RemixOS?
Click to expand...
Click to collapse
Output of lsmod on Remix OS
Code:
Module Size Used by Not tainted
binfmt_misc 9163 1
btusb 31641 0
btintel 8387 1 btusb
btbcm 7000 1 btusb
btrtl 4762 1 btusb
bluetooth 444148 4 btusb,btintel,btbcm,btrtl
joydev 8960 0
mac_hid 3843 0
aesni_intel 158637 0
aes_x86_64 7979 1 aesni_intel
bsd_comp 4698 0
ppp_deflate 3798 0
ppp_async 6285 0
pppoe 8661 0
pppox 2638 1 pppoe
ppp_generic 22870 5 bsd_comp,ppp_deflate,ppp_async,pppoe,pppox
slhc 5081 1 ppp_generic
rtsx_pci_sdmmc 15489 0
rtsx_pci_ms 8248 0
memstick 9812 1 rtsx_pci_ms
acpi_cpufreq 10953 0
hp_wmi 7337 0
sparse_keymap 3842 1 hp_wmi
uvcvideo 66519 1
videobuf2_v4l2 19150 1 uvcvideo
videobuf2_core 21121 2 uvcvideo,videobuf2_v4l2
videobuf2_vmalloc 4693 1 uvcvideo
videobuf2_memops 2716 1 videobuf2_vmalloc
psmouse 105208 0
atkbd 16684 0
pcspkr 2158 0
efivars 7470 0
r8169 61261 0
mii 4910 1 r8169
rtsx_pci 41858 2 rtsx_pci_sdmmc,rtsx_pci_ms
shpchp 23551 0
i2c_piix4 11190 0
snd_hda_codec_idt 46518 1
snd_hda_codec_generic 53744 1 snd_hda_codec_idt
snd_hda_codec_hdmi 38342 1
snd_hda_intel 27849 0
snd_hda_codec 105533 4 snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel
snd_hda_core 53711 5 snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_hwdep 5785 1 snd_hda_codec
snd_pcm 85833 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer 20488 1 snd_pcm
snd 65134 8 snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore 6615 1 snd
radeon 1263846 8
ttm 77193 1 radeon
drm_kms_helper 108093 1 radeon
drm 310906 11 radeon,ttm,drm_kms_helper
fb_sys_fops 1759 1 drm_kms_helper
sysimgblt 2562 1 drm_kms_helper
sysfillrect 3485 1 drm_kms_helper
syscopyarea 3185 1 drm_kms_helper
i2c_algo_bit 5421 1 radeon
hwmon 4404 1 radeon
wmi 8736 1 hp_wmi
hp_wireless 2149 0
hp_accel 17999 0
lis3lv02d 14943 1 hp_accel
input_polldev 5455 1 lis3lv02d
The driver seems to be there but Remix OS does not use it in Chrome (like Linux)
Suici Doga said:
Output of lsmod on Remix OS
Code:
Module Size Used by Not tainted
binfmt_misc 9163 1
btusb 31641 0
btintel 8387 1 btusb
btbcm 7000 1 btusb
btrtl 4762 1 btusb
bluetooth 444148 4 btusb,btintel,btbcm,btrtl
joydev 8960 0
mac_hid 3843 0
aesni_intel 158637 0
aes_x86_64 7979 1 aesni_intel
bsd_comp 4698 0
ppp_deflate 3798 0
ppp_async 6285 0
pppoe 8661 0
pppox 2638 1 pppoe
ppp_generic 22870 5 bsd_comp,ppp_deflate,ppp_async,pppoe,pppox
slhc 5081 1 ppp_generic
rtsx_pci_sdmmc 15489 0
rtsx_pci_ms 8248 0
memstick 9812 1 rtsx_pci_ms
acpi_cpufreq 10953 0
hp_wmi 7337 0
sparse_keymap 3842 1 hp_wmi
uvcvideo 66519 1
videobuf2_v4l2 19150 1 uvcvideo
videobuf2_core 21121 2 uvcvideo,videobuf2_v4l2
videobuf2_vmalloc 4693 1 uvcvideo
videobuf2_memops 2716 1 videobuf2_vmalloc
psmouse 105208 0
atkbd 16684 0
pcspkr 2158 0
efivars 7470 0
r8169 61261 0
mii 4910 1 r8169
rtsx_pci 41858 2 rtsx_pci_sdmmc,rtsx_pci_ms
shpchp 23551 0
i2c_piix4 11190 0
snd_hda_codec_idt 46518 1
snd_hda_codec_generic 53744 1 snd_hda_codec_idt
snd_hda_codec_hdmi 38342 1
snd_hda_intel 27849 0
snd_hda_codec 105533 4 snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel
snd_hda_core 53711 5 snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_hwdep 5785 1 snd_hda_codec
snd_pcm 85833 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer 20488 1 snd_pcm
snd 65134 8 snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore 6615 1 snd
radeon 1263846 8
ttm 77193 1 radeon
drm_kms_helper 108093 1 radeon
drm 310906 11 radeon,ttm,drm_kms_helper
fb_sys_fops 1759 1 drm_kms_helper
sysimgblt 2562 1 drm_kms_helper
sysfillrect 3485 1 drm_kms_helper
syscopyarea 3185 1 drm_kms_helper
i2c_algo_bit 5421 1 radeon
hwmon 4404 1 radeon
wmi 8736 1 hp_wmi
hp_wireless 2149 0
hp_accel 17999 0
lis3lv02d 14943 1 hp_accel
input_polldev 5455 1 lis3lv02d
The driver seems to be there but Remix OS does not use it in Chrome (like Linux)
Click to expand...
Click to collapse
Seems more like a Chrome/html5 app issue to me.
I get acceleration values being passed to chrome as this html5 app works
HypoTurtle said:
Seems more like a Chrome/html5 app issue to me.
I get acceleration values being passed to chrome as this html5 app works
Click to expand...
Click to collapse
Not working in Linux. Going to try Remix OS
UPDATE : Does not work in Remix OS. Seems like a Chrome issues. And what laptop did you use
HypoTurtle said:
Seems more like a Chrome/html5 app issue to me.
I get acceleration values being passed to chrome as this html5 app works
Click to expand...
Click to collapse
Also not working in Remix OS. Are there any apps that I can test with since it might be a Chrome problem
Suici Doga said:
Also not working in Remix OS. Are there any apps that I can test with since it might be a Chrome problem
Click to expand...
Click to collapse
Z device test or Sensor box shoukd work as well.
Have you turned box mode off in build.prop?
ro.remixos.box=false
HypoTurtle said:
Z device test or Sensor box shoukd work as well.
Have you turned box mode off in build.prop?
ro.remixos.box=false
Click to expand...
Click to collapse
Box mode is true . I will try those apps
HypoTurtle said:
Z device test or Sensor box shoukd work as well.
Have you turned box mode off in build.prop?
ro.remixos.box=false
Click to expand...
Click to collapse
Sensor Box doesn't work. But running watch -n 1 cat /sys/devices/platform/lis3lv02d/position works in both Remix OS and Linux and changes when I move the laptop (HDD probably turns off).
So maybe Remix OS isn't giving the accelerometer sensor to the apps
Suici Doga said:
Box mode is true . I will try those apps
Click to expand...
Click to collapse
Change that to false, if you can.
Suici Doga said:
Sensor Box doesn't work. But running watch -n 1 cat /sys/devices/platform/lis3lv02d/position works in both Remix OS and Linux and changes when I move the laptop (HDD probably turns off).
So maybe Remix OS isn't giving the accelerometer sensor to the apps
Click to expand...
Click to collapse
What does 'getprop | grep hal' show, and does 'modprobe hdaps' do anything?
And maybe 'getevent' [ctrl+c to stop]; it couldbe just that it isn't/can't be used as an accelerometer, but just a joystick... do you have a /dev/js1 or /dev/input/js1
HypoTurtle said:
Change that to false, if you can.
What does 'getprop | grep hal' show, and does 'modprobe hdaps' do anything?
And maybe 'getevent' [ctrl+c to stop]; it couldbe just that it isn't/can't be used as an accelerometer, but just a joystick... do you have a /dev/js1 or /dev/input/js1
Click to expand...
Click to collapse
getprop | grep hal shows nothing and modprobe hdaps also does nothing. And getevent shows events coming from /dev/event4 . I also don't have those joystick files
Suici Doga said:
getprop | grep hal shows nothing and modprobe hdaps also does nothing. And getevent shows events coming from /dev/event4 . I also don't have those joystick files
Click to expand...
Click to collapse
getprop | grep sensors show anything?
HypoTurtle said:
getprop | grep sensors show anything?
Click to expand...
Click to collapse
It says [ro.hardware.sensors]: [kbd]
Suici Doga said:
It says [ro.hardware.sensors]: [kbd]
Click to expand...
Click to collapse
Can you write to system files? (Systemless root or System r/w)
Slim, chance that /etc/init.sh can be tweaked for this
[Can you cat /sys/class/dmi/id/uevent]
HypoTurtle said:
Can you write to system files? (Systemless root or System r/w)
Slim, chance that /etc/init.sh can be tweaked for this
[Can you cat /sys/class/dmi/id/uevent]
Click to expand...
Click to collapse
I installed Remix OS with System R/W
Output of cat /sys/class/dmi/id/uevent
Code:
MODALIAS=dmi:bvnInsyde:bvrF.15:bd10/04/2012:svnHewlett-Packard:pnHPPaviliong7NotebookPC:pvr0880110000305D10000620100:rvnHewlett-Packard:rn184B:rvr57.2F:cvnHewlett-Packard:ct10:cvrChassisVersion:

[Kernel][harpia] Squid Kernel for Moto G4 Play

This is my "Squid Kernel" for the 2016 Moto G4 Play, codenamed harpia. It shares a common codebase with my kernels for osprey, surnia, and lux. It consists of the latest Motorola MSM8916 kernel, with all the latest changes from CodeAurora and Kernel.org merged in, along with select cherry-picks and additions of my own. Flash it using TWRP. Bug reports and contributions are welcome.
This kernel supports both the stock ROM and custom ROMs.
Disclaimer:
This is for the 2016 Moto G4 Play (harpia) only! Versions r22 and up are for Nougat ROMs with modern blobs only! Don't flash it on a previous Moto G, or surnia, or lux. This kernel is provided AS-IS, with no warranties. I am not responsible for bricking your device. Flash at your own risk.
Features:
Moderately undervolted
Updated to Linux 3.10.108
Synced with latest CodeAurora changes
Improved memory management
Improved memory caching backported from Linux 3.15
Improved storage performance
Optimized ARM crypto routines
Updated f2fs and WiFi drivers
FIOPS and BFQ I/O schedulers
Lionfish CPU governor
IntelliPlug CPU hotplug (by faux123)
KCAL MDP5 colour control (by savoca)
Improved zRAM backported from Linux 4.9
Vibration intensity control
Compiled with Linaro GCC 7.3 and optimized for Cortex A53
Stripped down and optimized configuration
Release History:
Code:
r23: August 15, 2018
- More reliable headphone detection on harpia
- Tonnes of security patches
- Updated binder
- Compiled with Linaro GCC 7.3.1
r22b: January 13, 2018
- Audio driver fixes
r22: January 11, 2018
- Security patches
- Updated camera drivers
- Stock Nougat support
- Nougat only, requires modern blobs
r21: December 6, 2017
- Updated to Linux 3.10.108
- Security patches
- Oreo support related patches
r20: August 2, 2017
- Updated to Linux 3.10.107
- Tonnes of security patches from many places
- Updated sdcardfs from Google
- Updated WiFi driver from CAF
- Compiled with Linaro GCC 6.3.1
r19: January 1, 2017
- Added support for Nougat ROMs
- Updated zRAM from Linux 4.9
- Updated (optimized) FUSE from CAF
- Kernel ASLR and many info leak fixes
- ARM PXN support for exploit mitigation
- Tons of security updates
- Some CAF updated from LA.BR.1.2.9_rb1.10
- Fixed kernel panic on VPN disconnection
- Updated compiler to Linaro GCC 6.2.1
r18: November 8, 2016
- Initial release for harpia
Downloads:
Main downloads tab
XDA:DevDB Information
Squid Kernel for Moto G4 Play, Kernel for the Moto G4 Play
Contributors
squid2
Source Code: https://github.com/sultanqasim/android_kernel_motorola_msm8916
Kernel Special Features: undervolted, lionfish, fiops, intelliplug, latest Linux and Qualcomm fixes
Version Information
Status: Stable
Current Stable Version: r23
Stable Release Date: 2018-08-15
Created 2016-11-09
Last Updated 2018-08-15
it is for all Harpia XT16XX?
mario156090 said:
it is for all Harpia XT16XX?
Click to expand...
Click to collapse
Yes, all harpia variants running all Marshmallow ROMs (stock and custom) should work with r18. A Nougat-only version will be coming later once I bring CM14.1 to this device.
I'm trying it now. No issues so far.
Just in case, how I would I could go back to stock kernel?
Frank_s_ph said:
I'm trying it now. No issues so far.
Just in case, how I would I could go back to stock kernel?
Click to expand...
Click to collapse
Flash your stock twrp backup
Sent from my Moto G Play using XDA-Developers mobile app
@squid2, Your kernel is very good, is it possible to overlock?
Just wanted to say this kernel is amazing. Not sure how accurate the seetings for the battery are but it says I have 4 days remaining at 86%. Even if its half that its still a massive improvement, thanks for your devotion and work on the g series @squid2.
You are ruling the harpia forum.
Great job
For whatever it's worth, I installed BaseMark OS II and ran a before and after test of the Nov 8 kernel. It slowed down the memory a bit. The first four columns are stock and the last four columns are with the Nov 8 kernel.
Overall 628 625 628 621 | 542 538 541 539
System 1043 1029 1062 1054 | 1028 1048 1067 1040
Memory 852 853 847 828 | 517 496 503 505
Graphics 315 315 315 313 | 305 304 299 304
Web 554 551 549 545 | 531 533 535 527
For such a big hit to the memory score, it didn't affect the rest all that much. I wonder if there isn't some boost in battery life that I'm not sure how to measure. I didn't notice much warmth from the phone while running the benchmark, but I didn't really make a good test of that. If the battery life is xx% better, then it's a choice of what you value.
Please don't take this as being negative. I really appreciate the chance to try this out. Keep going Squid! I'm dying to see the CM's going on this phone!!
Hello @squid2 sir
I can't find any undervolting commit on github
Can you help me find it ?
Sent from my Motorola Moto E using XDA Labs
Should I be seeing better battery life when compared to stock? Because it looks to be worse (higher consumption when using, like wifi browsing). Do I have to change the governor?
Also, if I switch back to stock kernel, do I have to reset something (like some settings)?
I guess that the kernel wasn't the differentiating factor, as I just got similar performance as with stock - 3 days standby and 10 hours screen on time.
nick_white said:
Should I be seeing better battery life when compared to stock? Because it looks to be worse (higher consumption when using, like wifi browsing). Do I have to change the governor?
Also, if I switch back to stock kernel, do I have to reset something (like some settings)?
Click to expand...
Click to collapse
No need for setting anything when going back to stock kernel.
I'm wondering if this kernel makes it possible to use the white battery LED as notification LED?
To me the G4 Play's only flaw is not having a notification LED, but an "battery is being charged" LED... Very odd.
yeah this would be cool
K.E. said:
I'm wondering if this kernel makes it possible to use the white battery LED as notification LED?
To me the G4 Play's only flaw is not having a notification LED, but an "battery is being charged" LED... Very odd.
Click to expand...
Click to collapse
I second this. I found it really odd how it's charging only, but not for notifications. I really would love to see if anyone could incorporate a notification light setting
Is the carging led somewhere at the bottom left of the phione? I can see something beneath the glass (looks like the proximity sensor), but mine is not lighting up when charging...
nick_white said:
Is the carging led somewhere at the bottom left of the phione? I can see something beneath the glass (looks like the proximity sensor), but mine is not lighting up when charging...
Click to expand...
Click to collapse
It's in the slightly on the bottom left side when plugged in. Surprised me the first time I installed CM after running stock for a little while, I didn't see a setting in the stock rom for it.
VPN disconnect reboot
I found a reproducible bug that causes a reboot with the r18 kernel. When using the built-in Android VPN feature the phone reboots as soon as I click disconnect. I tested with the stock kernel and it works fine, also tested with and without SuperSu. Phone is a xt1607 running stock ROM 6.0.1. The VPN type is PPTP.
Code:
<1>[ 328.175881,1] Unable to handle kernel NULL pointer dereference at virtual address 00000004
<1>[ 328.175928,1] pgd = c0004000
<1>[ 328.175946,1] [00000004] *pgd=00000000
<0>[ 328.175977,1] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
<4>[ 328.175995,1] Modules linked in:
<4>[ 328.176025,1] CPU: 1 PID: 9399 Comm: pppd Tainted: G W 3.10.104-r18-g15931b7-03706-gec43596 #2
<4>[ 328.176046,1] task: c5fa78c0 ti: dc0f4000 task.ti: dc0f4000
<4>[ 328.176081,1] PC is at ppp_unregister_channel+0x200/0x2c0
<4>[ 328.176106,1] LR is at _raw_spin_unlock_irqrestore+0x28/0x48
<4>[ 328.176129,1] pc : [<c06ca324>] lr : [<c0e1b918>] psr: 600f0013
<4>[ 328.176129,1] sp : dc0f5da0 ip : 00000091 fp : d2f00548
<4>[ 328.176153,1] r10: dfdc9a60 r9 : dfdc9a60 r8 : dee68fcc
<4>[ 328.176172,1] r7 : ccafb590 r6 : c15cdc40 r5 : e2d848cc r4 : dee68f80
<4>[ 328.176191,1] r3 : 00000004 r2 : 00000000 r1 : 00000000 r0 : 00000000
<4>[ 328.176212,1] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
<4>[ 328.176232,1] Control: 10c0383d Table: a2b2c06a DAC: 00000015
<0>[ 328.176250,1] Process pppd (pid: 9399, stack limit = 0xdc0f4238)
<0>[ 328.176268,1] Stack: (0xdc0f5da0 to 0xdc0f6000)
<0>[ 328.176299,1] 5da0: e1506400 00000000 c2a16d00 e3b61010 dfdc9a40 c06d0934 e1506400 c06d3cac
<0>[ 328.176327,1] 5dc0: dfdc9a60 00000000 dfcadf68 e3b61010 00000008 c0bc2b14 d2f00540 00000000
<0>[ 328.176356,1] 5de0: dfcadf68 c02934a8 00000000 00000000 e2fffa90 c5fa7d44 00000000 c16490b8
<0>[ 328.176384,1] 5e00: c5fa78c0 de508540 de508574 00418004 fffffdfe c015d770 c5fa78c0 002f002f
<0>[ 328.176412,1] 5e20: dc0f4000 c5fa7d64 c5fa78c0 00000001 dc0f4000 c0138c5c 00000000 00000000
<0>[ 328.176440,1] 5e40: 00000002 e1316000 002f002f c0e1e388 c5fa78c0 56e80405 e131601c dc0f5ee8
<0>[ 328.176468,1] 5e60: fffffdfe c013a76c dc0f4000 00000009 c29d4000 dc0f5ee8 c0f01c48 c014d950
<0>[ 328.176497,1] 5e80: 603d2b40 0000004c c151d290 da5e4ec0 c15e1064 da5e53c4 418004fc 00040005
<0>[ 328.176525,1] 5ea0: 00040006 dc0f5ed4 c25ee300 dc0f4000 dc0f5fb0 c151c408 dc0f5ed4 dc0f5ee8
<0>[ 328.176554,1] 5ec0: b6d980f8 b6d980fc fffffdfe c01111a4 0000000a c0e1b418 0000000a c0e1b918
<0>[ 328.176582,1] 5ee0: 0000000a c013d950 00000009 00000000 00000000 00000000 00000000 00000000
<0>[ 328.176610,1] 5f00: c151c408 fffffdfe 00000000 be86a810 00000008 00000000 dc0f4000 c02ac660
<0>[ 328.176638,1] 5f20: dc0f5f4c 00000000 be86a840 00000000 be86a8c0 000006bf 00000807 310fd355
<0>[ 328.176666,1] 5f40: 00000000 000006bf 30898980 00000807 310fd355 000006bf 30898980 000006bf
<0>[ 328.176696,1] 5f60: 2a78fbd9 000006bf 2a78fbd9 56e80405 c010db64 dc0f4000 dc0f4000 dc0f4000
<0>[ 328.176724,1] 5f80: dc0f5fb0 c010db64 dc0f4000 00000000 b6fc7d54 c01116c0 be86a810 00000000
<0>[ 328.176752,1] 5fa0: 000006bf 0000014f c010db64 c010da28 00000008 be86a840 00000000 be86a8c0
<0>[ 328.176780,1] 5fc0: be86a810 00000000 000006bf 0000014f be86a840 00000008 b6f7fbd1 b6fc7d54
<0>[ 328.176808,1] 5fe0: be86a808 be86a7f8 b6d704c9 b6d980f8 40070010 00000008 00000000 00252522
<4>[ 328.176853,1] [<c06ca324>] (ppp_unregister_channel) from [<c06d0934>] (pppox_unbind_sock+0x1c/0x28)
<4>[ 328.176892,1] [<c06d0934>] (pppox_unbind_sock) from [<c06d3cac>] (pppopns_release+0xe0/0x118)
<4>[ 328.176926,1] [<c06d3cac>] (pppopns_release) from [<c0bc2b14>] (sock_close+0x24/0xac)
<4>[ 328.176961,1] [<c0bc2b14>] (sock_close) from [<c02934a8>] (____fput+0x98/0x224)
<4>[ 328.176993,1] [<c02934a8>] (____fput) from [<c015d770>] (task_work_run+0xb8/0xf4)
<4>[ 328.177031,1] [<c015d770>] (task_work_run) from [<c0138c5c>] (do_exit+0x304/0x9c0)
<4>[ 328.177061,1] [<c0138c5c>] (do_exit) from [<c013a76c>] (do_group_exit+0x38/0xb0)
<4>[ 328.177093,1] [<c013a76c>] (do_group_exit) from [<c014d950>] (get_signal_to_deliver+0x324/0x668)
<4>[ 328.177127,1] [<c014d950>] (get_signal_to_deliver) from [<c01111a4>] (do_signal+0x9c/0x458)
<4>[ 328.177162,1] [<c01111a4>] (do_signal) from [<c01116c0>] (do_work_pending+0x74/0xbc)
<4>[ 328.177194,1] [<c01116c0>] (do_work_pending) from [<c010da28>] (work_pending+0xc/0x20)
<0>[ 328.177223,1] Code: e5940064 e2803004 f57ff05b f5d3f000 (e1932f9f)
<4>[ 328.177947,3] ---[ end trace 55110d0257cc6671 ]---
just found these commits - maybe this can be adapted to harpia?
https://review.cyanogenmod.org/#/c/144769/
https://review.cyanogenmod.org/#/c/144770/
https://review.cyanogenmod.org/#/c/144768/
K.E. said:
I'm wondering if this kernel makes it possible to use the white battery LED as notification LED?
To me the G4 Play's only flaw is not having a notification LED, but an "battery is being charged" LED... Very odd.
Click to expand...
Click to collapse

network unlock sm-j710gn operation log

Operation: Read Codes
Selected model: SM-J710GN
Software version: 29.1
Searching Samsung modem detected COM31
Reading phone info OK
Model SM-J710GN
AP version J710GNDXU1API5
CSC version J710FOJV1APD7
CP version J710GNDXU1API1
Product code SM-J710GZDUXSG
Phone SN RF8HB3F8XDW
Unique number CAJ03EB415FE3A3
Reading IMEI OK
IMEI: 358447076448431 (SIGN: OK)
IMEI 2: 358448076448439 (SIGN: OK)
Please wait, generating hash codes file, this can take few minutes OK
Reading data from phone OK
Modem board SHANNON315
HWID: 0E 05 00 00 00 00 00 00 00 00 00 00 C0 DC 26 54
Reading NV data OK
Checking NV data OK
Calculating OK
Please wait, calculating codes OK (time - 00:00:05)
Freeze code 04208508
NET lock 68285393
SUB lock 00000000
SP lock 00000000
CP lock 00000000
SIM lock 00000000
For check lock status *#7465625#
hope be usefull

Wetek Play unbrick

Hello everyone,
I own Wetek Play. I've been playing with software update, but it seems that it went into a bootloop. I conected serial monitor and i get following logs:
HHH
BootFrom SPI
ucl decompress
decompress false
/home/alex/uboot-wetek/arch/arm/cpu/aml_meson/common/firmware/loaduboot.cload_uboot0x0000007f⸮EEEE I3000000032940xf3001103;77520EEEE I400000004294_M6_BL1_3431>2534313
TE : 77476
BT : 22:19:13 Jan 15 2016
CPU clock is 1200MHz
wait pll-0x03 target is 0204 now it is 0x00000203
DDR clock is 516MHz with Low Power & 2T mode
DDR training :
DX0DLLCR:40000000
DX0DQTR:ffffffff
DX0DQSTR:3db05001
DX1DLLCR:40000000
DX1DQTR:ffffffff
DX1DQSTR:3db05001
DX2DLLCR:40000000
DX2DQTR:ffffffff
DX2DQSTR:3db05001
DX3DLLCR:40000000
DX3DQTR:ffffffff
DX3DQSTR:3db05001
Stage 00 Result 00000000
Stage 01 Result 00000000
Stage 02 Result 00000000
Stage 03 Result 00000000
DDR init use : 42463 us
HHH
BootFrom SPI
ucl decompress
decompress false
/home/alex/uboot-wetek/arch/arm/cpu/aml_meson/common/firmware/loaduboot.cload_uboot0x0000007f⸮EEEE I3000000032940xf3001103;77520EEEE I400000004294_M6_BL1_3431>2534313
TE : 77476
BT : 22:19:13 Jan 15 2016
CPU clock is 1200MHz
ait pll-0x03 target is 0204 now it is 0x00000203
DDR clock is 516MHz with Low Power & 2T mode
DDR training :
DX0DLLCR:40000000
DX0DQTR:ffffffff
DX0DQSTR:3db05001
DX1DLLCR:40000000
DX1DQTR:ffffffff
DX1DQSTR:3db05001
DX2DLLCR:40000000
DX2DQTR:ffffffff
DX2DQSTR:3db05001
DX3DLLCR:40000000
DX3DQTR:ffffffff
DX3DQSTR:3db05001
Stage 00 Result 00000000
Stage 01 Result 00000000
Stage 02 Result 00000000
Stage 03 Result 00000000
DDR init use : 42464 us
and so on...
The device does not react to "upgrade" button and SD card inserted.
Can anyone help me what should I do to unbrick my Wetek?
Thank you in advance.

Categories

Resources