yashsingh1/xdaforums huggingface dataset:
[Lenovo ZUK Z2 (Plus) Questions & Answers] Dhananjay_Yadav:
if you have installed drivers properly, then this is happening due to permission issues ,

use this tool : drive.google.com/file/d/1WHHKKhs3pI4m9jNHhHmFL1fQeqtNS-3X/view

steps ;

1. click on run it will fix the permission issue (phone automatically boots to fastboot mode)

2. use fastboot provided in the tool to unlock, it should work ..
[Lenovo ZUK Z2 (Plus) Questions & Answers] Haider**:
Its easy bro.mere saath bhi ho raha tha pehle ye batao ki aap computer se kar rahe ho ya laptop se .
[Lenovo ZUK Z2 (Plus) Questions & Answers] Emraan01:
Hp laptop sae
[Lenovo ZUK Z2 (Plus) Questions & Answers] ChetanLokhande:
Check out your drivers, it's your drivers issue pc/laptop not detecting the phone in fastboot mode
[Lenovo ZUK Z2 (Plus) Questions & Answers] @SreekanthPalakurthi:
update the drivers using pda.net ;)
[Lenovo ZUK Z2 (Plus) Questions & Answers] Haider**:
Just do it with another laptop.
[Lenovo ZUK Z2 (Plus) Questions & Answers] phanikumar07:
Boot loader unlock issue on zui 2.5.104st naugat based os it will not unlocked properly
[Lenovo ZUK Z2 (Plus) Questions & Answers] vinitharmalkar:
I can't unlock either, my devices is detected in the command window but following error occurs after the flash unlock bootloader command

Mine says 'writing unlock FAILED < remote: partition doesn't exist >'
[Lenovo ZUK Z2 (Plus) Questions & Answers] galaxyYoung30:
http://www.teamandroid.com/2012/07/30/how-to-set-up-adb-fastboot-with-android-sdk/3/

follow this guide to fix driver issues on windows 10 devices. I was having this issue yesterday and manually selecting the drivers fixed my problem.

Press thanks if i helped :)
[Lenovo ZUK Z2 (Plus) Questions & Answers] phanikumar07:
Unable to unlock bootloader

Hi

Boot loader unlock issue on zui 2.5.104st nugat based os it will not unlocked properly

That message will be appeared like this

fastboot -i 0x2b4c flash unlock unlock_bootloader.img

target reported max download size of 1610612736 bytes

sending 'unlock' (0 KB)...

OKAY [ 0.028s]

writing 'unlock'...

FAILED (remote: unlock failed)

finished. total time: 0.061s"

Any one know this issue please help me how to solve this issue

Thankyou
[Lenovo ZUK Z2 (Plus) Questions & Answers] vinitharmalkar:
Did you get partition doesn't exist issue? because I got that recently
[Lenovo ZUK Z2 (Plus) Questions & Answers] phanikumar07:
How to solve it
[Honor 9  Questions & Answers] atxbang56:
Hello boys! (and girls)

I've just rooted my Honor 9 and I'm looking for a good app to tune kernel settings (and maybe I/O settings) to avoid overheating while playing games (as Lineage 2).

I remember years ago I used Seeder app to generate entropy and avoid lags. I used kernel adiutor too to tune kernel but it seems that there is some bad informations about settings.

Any idea?

Thanks in advance
[Honor 9  Questions & Answers] JBolho:
Don't use Kernel Adiutor Mod or Reborn, use the original one from Play Store.

I've tuned my CPU but it seems that messing with it generates strange behaviour on frequencies. Huawei must have some kind of protection or auto-management built-in, like Xiaomi has on stock firmware/kernel.

As for other values, i have mine like this:

I/O settings - change scheduler to cfq, 1280 read-ahead on internal, 1024 read-ahead on external. Disable add-random and I/O logging.

Virtual Memory: Dirty Ratio - 10 / Dirty Background - 2 / Dirty Writeback Centicecs - 2000 / Swappiness - 30 / VFS Pressure - 99, all else just leave it as is.

Entropy - Read 512 / Write 1024

All running butter-smooth, the device may heat a bit while gaming but has good thermals and quickly goes back to normal temps after exiting a game.
[Android Q&A, Help & Troubleshooting] Marans79:
I root my Samsung. But now i can only hear my own Music on the Amazon Music App. But not the Prime Streams. What can i do? Please.
[Google Pixel 2 Questions & Answers] Of123:
I've been trying to turn on ambient display and keeping it up all night to see how the battery drains, and i found out that it drains an extra 10-15% over an 8 hr period. Is this normal or is there something wrong?
[Google Pixel 2 Questions & Answers] Stretlow:
No i've seen the same and turned it off, the only option I have on in there is the tap to wake
[Samsung Galaxy J7 Questions & Answers] mahmoud_998:
I have j7 2016 When i downloaded Android Nougat , the device is being hot, and the average consumption of ram increases to the end and the device stop working and donig Restart alone Ram 2 GB to reach 100 Mega available and device laging ,and problem in recovery mode (E:failed to find /misc partition )?? need some help pls :mad::mad:
[WebOS Software and Hacking General] xtreme_protector:
I'm not sure if many are aware, but LG TVs running webos (under webos 2.x here) probably contain a *full* installation of Qt ( in my case full Qt 5.2.1 is installed). When I said full, I mean that all Qt quick, declarative, webKit, gui, network, OpenGL, etc. Qt libraries are available :).

So far I've managed to successfully test/run the following:

-simple OpenGL ES applications (webos uses the Wayland architecture, see https://wayland.freedesktop.org for details ); I can actually compile and run any client included in Weston 1.2.0, see https://wayland.freedesktop.org/releases/ for what is available.

- Qt QML, Qt GUI applications also with WebKit can all be compiled and run on the TV.

- Kernel modules: compiled CIFS module and I'm able to moutn SMBA shares under SmartShare. Recording to Samba shares not possible unfortunately....

- getevent android tool ported to linux (see https://github.com/ndyer/getevent). Very useful for finding various key events. I used it to write my own 'daemon' to listen to Magic Remote key presses and start other applications.

- I've managed to also compile qemu-i386 (from qemu-stable 2.4) so that I can run the native sopcast linux i386 client (sp-sc-auth) on the TV itself. This in combination with a custom-made Qt application for choosing sop streams and SS IPTV means that I can watch sopcast streams on my TV at the push of a remote button.

- Custom-made ambilight. I capture screen, decode produced jpeg file, do led color computations and spit them via usb (libusb available on the TV) to an arduino controlling the LEDS.

====

Needless to say, but as prerequisites you need a rooted TV, access to TV via telnet and/or ssh/sftp, extracted rootfs from your TV, toolchain and kernel sources (if you need compile additional modules). Toolchain and kernel sources are available for my TV, from the LG open-source website.

If other people are interesting I can post some more details.
[WebOS Software and Hacking General] y=fx:
I was trying to do the same thing, I compile several sources with curl library after extracting the file system , can you give me more info on the Qt library?

thanks
[WebOS Software and Hacking General] xtreme_protector:
Well, I think that the Qt library version installed on your TV may not be the same with mine; probably it depends on the webos version. On my TV I have Qt 5.2.1 (easy to tell from the file extension,; for instance I have Qt lib files with names such as libQt5Core.so.5.2.1, etc.) By luck I'm running Kubuntu 14.04 which uses, by default, the same Qt version. So this means that I've already had all Qt headers installed under /usr/include.

In your case, you'll need to download all Qt dev library packages matching the libs. from your tv, and extract them manually somewhere. Once you have that generate makefiles using qmake, then modify them to point to your libs. and headers.

Let me know how it goes for you.
[WebOS Software and Hacking General] y=fx:
I did it this way for the sdl2 library, but I had to copy the whole file system and mount it to make a chroot . The problem I encountered for the QT library (the version in use on my TV is 5.4.1) it's with the compiler. I do not have a compiler that supports c++11 , I only found version 4.2.3 of gcc/g++ as a working ipk package ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/gcc_4.2.3-1_arm.ipk

Target: arm-none-linux-gnueabi
Configured with: ../gcc-4.2/configure --build=i386-pc-linux-gnu --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi --prefix=/opt --disable-nls --disable-static --with-as=/home/slug/optware/cs08q1armel/toolchain/arm-2008q1/bin/arm-none-linux-gnueabi-as --with-ld=/home/slug/optware/cs08q1armel/toolchain/arm-2008q1/bin/arm-none-linux-gnueabi-ld --enable-languages=c,c++ --disable-multilib --enable-threads --disable-libmudflap --disable-libssp --disable-libgomp --disable-libstdcxx-pch --enable-shared --enable-symvers=gnu --enable-__cxa_atexit
Thread model: posix
gcc version 4.2.3

edit: ok I was able to fill out a small program correctly
[WebOS Software and Hacking General] xtreme_protector:
I did not recompile Qt. I simply used all libs from the TV (rootfs) and local additional header files. As I said, I generate makefiles using qmake, modify them to point them to the TV libraries and then compile whatever I need... Btw. I cross-compiled my Qt programs.

Regarding the toolchain, I have version 4.6.4 (dated 20120731).
[WebOS Software and Hacking General] y=fx:
I have always used the dynamic libraries present, however I managed to compile and package a test program. Now the next step is to do some porting, eg kodi .

good news www.cnx-software.com/2018/03/19/lg-releases-webos-open-source-edition-optimized-for-raspberry-pi-3/
[WebOS Software and Hacking General] xtreme_protector:
Regarding kodi, I've already started :). I've started with Jarvis since it has support for wayland. Unfortunately even this requires g++ 4.7.x or better. Not sure if teh standard arm gcc toolchain (4.7 on ubuntu 14.0.4) produces runnable executables. Will try this evening, though.

Edit: The arm cross-compiler installed by default in ubuntu 14.0.4 works. So, most likely any " arm-linux-gnueabi" will work for you. I'm using now "arm-linux-gnueabi-gcc (Ubuntu/Linaro 4.7.3-12ubuntu1) 4.7.3"

If you have ideas regarding kodi porting, let me know. It would be just great to have it running on our TVs.

===

Also the link you posted regarding webos on RPI looks promising, indeed. Question is what is inside ;).

Edit: kodi already starts but cannot create the window system. I know what happened: the modified configure script failed to enable building the wayland back end. Will try again, although my TV uses really old wayland ( version1.1.0). I'll keep you posted...
[WebOS Software and Hacking General] xtreme_protector:
Well, regarding kodi, I enabled wayland, libraries load fine, but now I get a "Illegal instruction" error. This is a tough one since without proper tools (gdb, strace), it's difficult to figure out what's going on.

If anyone could help figuring this one out, let me know.
[WebOS Software and Hacking General] y=fx:
Hi this morning I ported a small application. I posted the app on github https://github.com/Sputkin/uMario_Jakowski .

How are you connecting dynamic libraries ? how you have configured the project
[WebOS Software and Hacking General] xtreme_protector:
Nice, will have a look. How did you manage to pack it as an ipk ? Where does it install ? Is a native app, i..e, does it appear in the webos start menu ?

Right, so it's a mix of existing libs from TV (rootfs) and my own compiled ones. The process was as follows:

- configure kodi for wayland, cross-compilation, arm arch, etc. Of course the configure script would stop in some missing library.

- Whenever the above happens, patch/modify the configure script to skip checking for the installed lib. If the library exists in the rootfs, nothing to do.

- Else, download source of the library, cross-compile it for arm, install it in some dir.

- In the end, the configure script finishes...

- Trying then to make kodi, the linking process stops for missing libraries (on my TV the libs. names end in libxxx.so.ver.subver_etc.so, so no way for the patched build system to find the proper name for the *.so file). In this case, I've manually modified the Makefile to point to the library (using -l:libxxx.so.ver.subver_etc.so). It's a very cumbersome process, but hey, for now it's good enough...

===

I could upload my configure file for kodi Jarvis. Also, the main modified Makefile might help, to get you an idea about what I mean...

My point is that I;m just trying to see if kodi 'can' work, without lots of source code modifications. If this succeeds, of course, we need to take a step back and build a sound build system for the webos.

One more update regarding kodi: I now have gdb and strace running on the TV, and i can trace where the "illegal instruction" happens. Unfortunately it is in the boost library, in function try_lock() (which has different implementations for different architectures). I'm going to try to bypass the error by forcing to use the pthread library. Let's see what comes out :).
[WebOS Software and Hacking General] y=fx:
I used the tools provided in the sdk, ares-package ares-install ..... etc . here you can find my template https://github.com/Sputkin/uMario_Jakowski/tree/master/webos_ipk

if you can, upload the configuration file for jarvis branch
[WebOS Software and Hacking General] xtreme_protector:
Well, kodi starts now !!!

Let's see what works :).
[WebOS Software and Hacking General] xtreme_protector:
Well, no 'magic remote' input, so cannot tell ;)....
[WebOS Software and Hacking General] xtreme_protector:
Please see my prev. questions. How did you pack it ? What it uses (SDL maybe ???). Up to my head in the kodi stuff. I need to get them 'magic mote'' working, just to see where the next crash is....
[WebOS Software and Hacking General] y=fx:
you can connect an HID device

---------- Post added at 06:51 PM ---------- Previous post was at 06:40 PM ----------

uses the SDL2 library entirely so it should work on any version with this library . To package, you must use the ares-package script provided in the LG SDK , copy the appinfo.json file and the images in the folder where you have compiled kodi , change the name of the executable in the appinfo.json file and then exec

ares-package .
[WebOS Software and Hacking General] xtreme_protector:
Ok, clear, thanks. Will try.

===

Now, any idea how to get some 'input' into kodi ?

Edit: How could I force kodi to use the magic mote (which I suppose/hope is some touch/mouse interface) ??? Is there a kodi setting ?
[WebOS Software and Hacking General] xtreme_protector:
Even with a usb keyboard connected, I cannot get kodi to respond to keys (no crashes though :) ...

What's going on ? Ideas ?
[WebOS Software and Hacking General] y=fx:
please upload the configuration file so that I can test it directly
[WebOS Software and Hacking General] xtreme_protector:
That's not going to be so simple ;) I mean I did not have to modify only the configure script but lots other places. I'll update the whole sheebag; will bet back with the link.
[WebOS Software and Hacking General] xtreme_protector:
Here is the link to my kodi source tree:

https://www.dropbox.com/sh/9zbrle1ykea786o/AAAoD2zfZL9BxTEDnM8rsz3Ua?dl=0

==

A few notes:

- do not run configure (it's going to overwrite all makefiles, which I've modified...).

- most important files are: andy_config.sh (in the kodi root dir), xbmc/DllPaths_generated.h (modify this manually so that it matches what you need).

- you'll need to update the -l:libxxx.so in the (main) Makefile to match your libraries.

- I'll upload (in the same dropbox dir) the additional libraries which I've compiled (file sysrootfs.tgz). If it helps you, I could also upload the rootfs extracted from the Tv, but I guess you don;t need that....

- For the main modifications, just grep LUK recursively in the kodi source files and the provided files (particularly for the boost header file modification of try_lock()).

- Tell me if you cannot follow what I mean....

Edit: I've also added my last kodi.log file (the one showing the kodi interface, with rss :), but no keyboard/magic remote input working). Regarding the toolhcain, you need gcc >= 4.7. I used the standard arm-linux-gnueabi provided with ubuntu 14.0.4).

Cheers.
[WebOS Software and Hacking General] y=fx:
I'm working differently on a clean version of the brench in order to apply the patches once the entire program has been compiled
[WebOS Software and Hacking General] xtreme_protector:
Well, good that you want to do it in a clean way. Let's see if you manage...

===

Curious, if the additional libs help you, so keep me posted :). What webos version you have ?
[WebOS Software and Hacking General] y=fx:
The version is 3.3.1
[WebOS Software and Hacking General] xtreme_protector:
Ok, regarding input, something goes wrong (again) with the wayland stuff. If I force 'linux-type input' I can see in the kodi logs an enumeration of the input devices, grabbing, etc. Clearly, this is not the way to go, so I'll have to figure out what's going wrong with the wayland input.
[WebOS Software and Hacking General] y=fx:
I have a problem with ffmpeg

checking for FFMPEG... no
configure: error: "ffmpeg not found"
[WebOS Software and Hacking General] xtreme_protector:
That's what I was talking about. That's why I chose to modify the configure script to bypass the various tests.

===

Anyhow, you could try to point the configure script to my additional libraries (from sysroot.tgz) using the PKG_CONFIG_PATH option, see andy_config.sh. So, run configure as follows:

./configure ... PKG_CONFIG_PATH="/home/andrei/tmp/lg_tv/kodi/sysroot/lib/pkgconfig"

Modify the path to point to where you extracted sysroot.tgz (already contains precompiled ffmpeg libraries).
[WebOS Software and Hacking General] xtreme_protector:
Btw. today I won't have time to mess with kodi, but do let me know if you manage to get it to compile.
[WebOS Software and Hacking General] xtreme_protector:
Good news !

Kodi Jarvis is up and running, with sound, etc. Playing a movie over NAS with surprisingly low occupancy (11%).

Edit: Cannot play smoothly a 1080 3D side-by-side movie, though...

Will keep you posted.
[WebOS Software and Hacking General] y=fx:
I managed to compile with some hiccups , there are several problems .. https://pastebin.com/VkuUHWZ1

I have to review the compilation phase .

edit: fixed the problem now crashes after viewing the logo https://pastebin.com/1zKiXzL0

Ok , now starts correctly :p
[WebOS Software and Hacking General] xtreme_protector:
Ok, so the wayland errors are fixed in the second log file you posted :).

Regarding undefined symbol: _ZN13GuidGenerator7newGuidEv , you need to link libcrossguid.so.0.0.1 from the additional rootfs archive that I uploaded in dropbox. If all fails, try recompiling crossguid.
[WebOS Software and Hacking General] xtreme_protector:
Btw. do you know which ffmpeg version is required for Jarvis (kodi 16.1) ? I still get 'this verison of ffmpeg is unsupported'.

Edit: Found it. It's in tools/depends/target/ffmpeg
[WebOS Software and Hacking General] y=fx:
yes i found the reference with objdump . It is necessary to keep in mind these small problems in order to reorganize the work . Perfect , did you work on the input? for infrared remote controls, lircd is not present, but we can work on it
[WebOS Software and Hacking General] xtreme_protector:
> did you work on the input?

Yes, I managed to get it to work using the linux input system (not wayland). For some wired reason, wayland events (mouse, keyboard) are not fired. Can you test this and confirm this issue ?
[WebOS Software and Hacking General] y=fx:
The problem is that something after a few seconds move the application in the background . I also tried to create a package but in that case it is not started , do you have any ideas?

https://drive.google.com/file/d/1I3Qw_0oVq3QzH0V59Hlgg2VPa6IPr5yI/view?usp=sharing
[WebOS Software and Hacking General] xtreme_protector:
I haven't had this on my TV....

It seems, indeed, that something puts kodi in the background. Looking at your video, I suppose it;s not crashing.

Maybe try to run kodi.bin using strace. See if that reveals something. As I said, I cannot reproduce this behaviour.

If you need gdb, strace, let me know. (I've managed to find them.)

===

I hope you can solve this issue, so that we can move on. In the meantime, I've been improving a few libs (pcre, ffmpeg) and python (which is a pain in the neck to cross-compile),.

Anyways, let me know how it goes...

.
[WebOS Software and Hacking General] y=fx:
Yes, in your case it does not occur because your version is different , for now I will try to work in this direction, otherwise I can not continue . Since you already have the tools compiled, link them so that I can investigate .
[WebOS Software and Hacking General] xtreme_protector:
Yes, it's clear. I really hope you can get it to work (I've seen you are under webos 3.3).

[/QUOTE]

Download the (old) LG toolchain from here: http://opensource.lge.com/osSch/list?types=ALL&search=webOS+DKLP3+LGE+Open+Source+toolchain

Inside it you find gdb, strace, etc. They all work on my tv just fine. I've used this gdb to help with the "Illegal instruction" stuff from boost.

Good luck !
[WebOS Software and Hacking General] xtreme_protector:
One more idea. I've uploaded a simple test program for wayland + EGL (much like kodi, just waaay lighter). Could you compile and run this on your TV (via telnet, so that you can see the output). Is this application also put in background ? If not, try pushing some mouse buttons. Do you see any output regarding mouse events ?

I hope this can help with the issue you're facing.

The file is in my dropbox shared folder (called simple_egl.tgz).
[WebOS Software and Hacking General] y=fx:
If you start from shell (telnet) as root, any graphics app is put in the background !! , i managed to make the graphic apps work properly by packaging , i tried EGL, SDL2 and they work by specifying native in the appinfo.json file . I tried to pack kodi, but in this case it is not really started, probably because I'm organizing the package badly or for some other reason .

without packaging the app, the app is always put in the background. Among other things I tried to start kodi at boot, but even then it is put aside.
[WebOS Software and Hacking General] xtreme_protector:
Interesting finding.... In my case I can start and run any app as root, without any packaging :).

===

Anyhow it seems that you are on the right track... Probably something goes wrong with packaging kodi.

Have you tried to start kodi at boot time with the start_dev_mode script ? I also have all my kodi stuff mounted on a USB hdd partition at boot time, via the start_dev_mode script. Also the kodi variables must be set, but probably you know that already. These are my settings:

export KODI_HOME=/tmp/usb/sda/sda2/kodi_rootfs/share/kodi

export HOME=/tmp/usb/sda/sda2

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/usb/sda/sda2/kodi_rootfs/lib

export WAYLAND_DISPLAY=wayland-0

===

So you see that my 'kodi root' is /tmp/usb/sda/sda2/kodi_rootfs/ (just the second ext4 partition on my ysb hdd),

Kod home is set to HOME (/tmp/usb/sda/sda2). Maybe this is why kodi failes to start at boot time ??? Just some random ideas ;).
[WebOS Software and Hacking General] y=fx:
I tried the wayland application with EGL GLESV2 , similar to kodi it starts but is placed in the background . obviously I tried to create an ipk, but it does not work
[WebOS Software and Hacking General] xtreme_protector:
Hmm, that's interesting. So even in an ipk, the simple EGL application does not work ? But your SDL applications do work, right ? So, could this be isolated and/or specific to wayland apps ?

===

So, well, at least it;s clear. Is not kodi, but something else going on. Try also to run the application using:

$ WAYLAND_DEBUG=1 ; ./simple-egl

You should see lots of wayland debug info. Maybe something useful shows up...

Edit: Use also strace, to see if the process gets suspended, etc.
[WebOS Software and Hacking General] xtreme_protector:
How about your SDL application. Does it suffer from this issue ? Is it specific to wayland ?

====

> WAYLAND_DEBUG=1 not work

That's strange. This is supposed to work as a means of debugging wayland apps. Of course you should run it from shell to be able to see output.