User talk:Hopspitfire

From WebOS Internals
Revision as of 04:16, 16 August 2009 by Hopspitfire (talk | contribs)
Jump to navigation Jump to search

Porting pages

Hey, welcome to the wiki. One thing: don't add your signature to pages you transfer over from the old wiki. This is a community effort, those pages will be edited by other people, and we want to try to keep a consistent look across pages. Thanks. —X1011 17:18, 20 July 2009 (UTC)

All instances of signature have been removed -hopspitfire

/ in page titles

If you can please do not use "/" in page titles. --Templarian 23:27, 20 July 2009 (UTC)

THANK YOU for your hard work on the wiki!

Please accept this "nobody knows the trouble I've seen" award as a token of our appreciation.


rboatright 02:11, 24 July 2009 (UTC)

Congrats on becoming an Editor --Templarian 13:16, 28 July 2009 (UTC)


I just had a horrible thought.

All those deletions you're doing that are pages that only had you as an editor...

if you delete the redireccts, aren't you deleting the thing that the old-page on the old-wiki links to? so you have broken the redirect FROM the old-wiki?

and that means that if anyone had blog-pages or precentral posts that linked to those, THOSE are broken.

I've never understood what's wrong with lots of redirects. One of my patrol pages on wikipedia has 27 redirects that end up there. And that's a GOOD thing. :-)

rboatright 05:16, 31 July 2009 (UTC)

agreed; see WebOS Internals talk:Policies and guidelines#Proposed: RedirectsX1011 05:59, 31 July 2009 (UTC)

Sit tight guys, I'm fixing all the links from predev. hopspitfire 06:01, 31 July 2009 (UTC)

  • edit All broken links have been fixed on predev. Rick, thanks for bringing this up. hopspitfire 06:16, 31 July 2009 (UTC)

Support Section

Patch webOS Show Actual Battery Percentage

I am having difficulty importing and pushing this particular app. I was curious if you would assist me. I have the webos 1.1 update. I get to the place (look below) and then im stuck.

dlbpre@castle:~$ sudo su -
root@castle:/var/home/root# cd /
root@castle:/# mount -o remount,rw /
root@castle:/# quilt import Index: /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js

of course I checked the quilt series to make sure i imported it correctly and then I pushed it and rebooted the device. When it powers back change...apparently i am missing something.

Sorry to ask you to "dumb it down" but i am a tyro (novice) to linux... :(

thanks for your help if you do decide to assist!!!!! :-D -Dlbpre

No problem at all. The first thing I'm noticing is that you're importing the wrong file, you'll want to import the '.patch' file. To accomplish this, you'll need to get the webos-internals modifications repo. Here:
sudo -s
mount -o remount,rw /
cd /opt/src
git clone git://

You'll need to make sure that quilt is configured correctly, type:

mkdir -p /opt/src/patches
sed -ire 's|^[\s#]*QUILT_PATCHES=.*|QUILT_PATCHES=/opt/src/patches|' /opt/etc/quilt.quiltrc

Make sure to remove the old series file before importing

rm /opt/src/patches/series
rm /opt/src/patches/bar-assistant.js

Then run:

quilt import /opt/src/modifications/luna/show-actual-battery-percent.patch
cd /
quilt push -a

Then reboot:


Let me know if it works. -hopspitfire 00:27, 16 August 2009 (UTC)

I get to here

root@castle:/# quilt import /opt/src/modifications/luna/show-actual
Patch quilt does not exist

I followed every direction to the "T". Copy and paste precisely what was listed.

Thanks for your assistance man (maybe lady). I really do appreciate the quick response.-Dlbpre

Hrmm, can you run this command and post the output:
find /opt/src

-hopspitfire 01:15, 16 August 2009 (UTC)

Here are the steps you applied to my previous question.

dlbpre@castle:~$ sudo -s
root@castle:/var/home/dlbpre# mount -o remount,rw /
root@castle:/var/home/dlbpre# cd /opt/src
root@castle:/opt/src# git clone git:// s.git
fatal: destination path 'modifications' already exists and is not an empty directory.
root@castle:/opt/src# mkdir -p /opt/src/patches
root@castle:/opt/src# sed -ire 's|^[\s#]*QUILT_PATCHES=.*|QUILT_PATCHES=/opt/src
/patches|' /opt/etc/quilt.quiltrc
root@castle:/opt/src# rm /opt/src/patches/series
rm: cannot remove '/opt/src/patches/series': No such file or directory
root@castle:/opt/src# rm /opt/src/patches/bar-assistant.js
rm: cannot remove '/opt/src/patches/bar-assistant.js': No such file or directory
root@castle:/opt/src# quilt import /opt/src/modifications/luna/show-actual-batte
Importing patch /opt/src/patches/show-actual-battery-percent.patch
root@castle:/opt/src# cd /
root@castle:/# quilt push -a
File series fully applied, ends at patch /opt/src/patches/bar-assistant.js
root@castle:/# mount -o remount,ro /
root@castle:/# reboot
/bin/sh: reboot: not found

As requested.

root@castle:/# find /opt/src


Ah ok, so it looks like you've successfully imported the patch. The problem is that it is still trying to run your previous file (bar-assistant.js, which is not a patch file):
root@castle:/# quilt push -a
File series fully applied, ends at patch /opt/src/patches/bar-assistant.js

Try this (be sure to copy and paste these, you don't want to accidently delete the wrong files):

mount -o remount,rw /
cd /
quilt pop -a
rm /opt/src/patches/*
quilt import /opt/src/modifications/luna/show-actual-battery-percent.patch
quilt push -a

To reboot the Pre, you can just press and hold <Orange-Button><Sym><R>. Let me know what happens.

Also, when you're done typing your comments, please type ~~~~ as that will insert your name and the time, like so -> hopspitfire 01:29, 16 August 2009 (UTC)

Here are the results:

root@castle:/var/home/dlbpre# mount -o remount,rw /
root@castle:/var/home/dlbpre# cd /
root@castle:/# quilt pop -a
Patch /opt/src/patches/bar-assistant.js needs to be refreshed first.
root@castle:/# rm /opt/src/patches/*
root@castle:/# quilt import /opt/src/modifications/luna/show-actual-battery-perc
Patch /opt/src/patches/show-actual-battery-percent.patch is applied
root@castle:/# quilt push -a
File series fully applied, ends at patch /opt/src/patches/bar-assistant.js
root@castle:/# mount -o remount,ro /

And the battery percentage has not decided to show yet. Dlbpre 02:01, 16 August 2009 (UTC)

Ok, somehow the series isn't being overwritten, which leads me to believe that it's using the wrong patches directory. Can you run this command and give me the output?
cat /opt/etc/quilt.quiltrc | grep PATCHES=

-hopspitfire 02:44, 16 August 2009 (UTC)

Nothing happens when I input that code. I did notice that you directed me to use "sudo -s"...instead of what i normally use "sudo su -". (forgive me if im an idiot and those two quotes are the same thing).


OK, I figured out the problem. First, there are no dumb questions: 'sudo -s' makes you the root user while still keeping the shell and environment variables of your regular user, while 'sudo su -' makes you the root user and uses the root shell and environment variables.

The easiest way is reinstalling quilt and then redoing quiltrc. Run these commands:

mount -o remount,rw /
rm /opt/src/patches/*
ipkg-opt update
ipkg-opt remove quilt perl libdb gdbm util-linux-ng e2fslibs ncursesw ncurses
ipkg-opt install quilt-lite

The next one is REALLY important, and sets the patches directory. Make sure to copy the whole command and paste it.

sed -ire 's|^[\s#]*QUILT_PATCHES=.*|QUILT_PATCHES=/opt/src/patches|' /opt/etc/quilt.quiltrc

Run this command to make sure it worked:

cat /opt/etc/quilt.quiltrc | grep PATCHES=

Your output should be: QUILT_PATCHES=/opt/src/patches

If it isn't, then something went wrong.

If everything went well, import and try pushing the patch again

quilt import /opt/src/modifications/luna/show-actual-battery-percent.patch
quilt push -a

Let me know what happens. -hopspitfire 03:16, 16 August 2009 (UTC)