Difference between revisions of "User talk:Hopspitfire"

From WebOS Internals
Jump to navigation Jump to search
Line 37: Line 37:
 
Sit tight guys, I'm fixing all the links from predev. [[User:Hopspitfire|hopspitfire]] 06:01, 31 July 2009 (UTC)
 
Sit tight guys, I'm fixing all the links from predev. [[User:Hopspitfire|hopspitfire]] 06:01, 31 July 2009 (UTC)
 
*edit All broken links have been fixed on predev. Rick, thanks for bringing this up. [[User:Hopspitfire|hopspitfire]] 06:16, 31 July 2009 (UTC)
 
*edit All broken links have been fixed on predev. Rick, thanks for bringing this up. [[User:Hopspitfire|hopspitfire]] 06:16, 31 July 2009 (UTC)
 +
 +
=Support Section=
  
 
== Patch webOS Show Actual Battery Percentage ==
 
== Patch webOS Show Actual Battery Percentage ==

Revision as of 03:16, 16 August 2009

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.

Drudgery.jpg

rboatright 02:11, 24 July 2009 (UTC)

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

Deletions

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 on..no 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://gitorious.org/webos-internals/modifications.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:

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
-battery-percent.patch
Patch quilt does not exist
root@castle:/#

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://gitorious.org/webos-internals/modification s.git
fatal: destination path 'modifications' already exists and is not an empty directory.
root@castle:/opt/src#
root@castle:/opt/src# mkdir -p /opt/src/patches
root@castle:/opt/src#
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
ry-percent.patch
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
/opt/src
/opt/src/patches
/opt/src/patches/show-actual-battery-percent.patch
/opt/src/patches/series
/opt/src/patches/default-to-month-view.patch
/opt/src/patches/capture_with_volume_keys.patch
/opt/src/modifications
/opt/src/modifications/amazonstore
/opt/src/modifications/amazonstore/amazon_evdo.patch
/opt/src/modifications/applauncher
/opt/src/modifications/applauncher/add-delete-pages-in-the-launcher.patch
/opt/src/modifications/camera
/opt/src/modifications/camera/capture_with_volume_keys.patch
/opt/src/modifications/install
/opt/src/modifications/clock
/opt/src/modifications/clock/hidden-clock.patch
/opt/src/modifications/messaging
/opt/src/modifications/messaging/messaging-sounds.patch
/opt/src/modifications/messaging/message-forwarding.patch
/opt/src/modifications/.git
/opt/src/modifications/.git/logs
/opt/src/modifications/.git/logs/HEAD
/opt/src/modifications/.git/logs/refs
/opt/src/modifications/.git/logs/refs/heads
/opt/src/modifications/.git/logs/refs/heads/master
/opt/src/modifications/.git/logs/refs/remotes
/opt/src/modifications/.git/logs/refs/remotes/origin
/opt/src/modifications/.git/logs/refs/remotes/origin/HEAD
/opt/src/modifications/.git/config
/opt/src/modifications/.git/hooks
/opt/src/modifications/.git/hooks/pre-rebase.sample
/opt/src/modifications/.git/hooks/prepare-commit-msg.sample
/opt/src/modifications/.git/hooks/pre-commit.sample
/opt/src/modifications/.git/hooks/post-receive.sample
/opt/src/modifications/.git/hooks/commit-msg.sample
/opt/src/modifications/.git/hooks/post-commit.sample
/opt/src/modifications/.git/hooks/pre-applypatch.sample
/opt/src/modifications/.git/hooks/applypatch-msg.sample
/opt/src/modifications/.git/hooks/update.sample
/opt/src/modifications/.git/hooks/post-update.sample
/opt/src/modifications/.git/objects
/opt/src/modifications/.git/objects/pack
/opt/src/modifications/.git/objects/pack/pack-d852f8e9c46d1d6fe4abb0714a5d469011a6db08.idx
/opt/src/modifications/.git/objects/pack/pack-d852f8e9c46d1d6fe4abb0714a5d469011a6db08.pack
/opt/src/modifications/.git/objects/info
/opt/src/modifications/.git/description
/opt/src/modifications/.git/packed-refs
/opt/src/modifications/.git/FETCH_HEAD
/opt/src/modifications/.git/branches
/opt/src/modifications/.git/ORIG_HEAD
/opt/src/modifications/.git/index
/opt/src/modifications/.git/info
/opt/src/modifications/.git/info/exclude
/opt/src/modifications/.git/HEAD
/opt/src/modifications/.git/refs
/opt/src/modifications/.git/refs/heads
/opt/src/modifications/.git/refs/heads/master
/opt/src/modifications/.git/refs/remotes
/opt/src/modifications/.git/refs/remotes/origin
/opt/src/modifications/.git/refs/remotes/origin/HEAD
/opt/src/modifications/.git/refs/tags
/opt/src/modifications/tasks
/opt/src/modifications/tasks/new-task-details.patch
/opt/src/modifications/email
/opt/src/modifications/email/enable-landscape-email.patch
/opt/src/modifications/email/prompt-for-ipk-installation.patch
/opt/src/modifications/phoneprefs
/opt/src/modifications/phoneprefs/roam-control.patch
/opt/src/modifications/phone
/opt/src/modifications/phone/phone-show-call-duration.sh
/opt/src/modifications/phone/phone-enable-roam-only.patch
/opt/src/modifications/soundsandalerts
/opt/src/modifications/soundsandalerts/message-tone-sounds-and-alerts.patch
/opt/src/modifications/musicplayer
/opt/src/modifications/musicplayer/bookmark.patch
/opt/src/modifications/calendar
/opt/src/modifications/calendar/default-to-month-view.patch
/opt/src/modifications/calendar/default-to-week-view.patch
/opt/src/modifications/screenlock
/opt/src/modifications/screenlock/longer_standby_times.patch
/opt/src/modifications/frameworks
/opt/src/modifications/frameworks/add-onscreen-keyboard.patch
/opt/src/modifications/luna
/opt/src/modifications/luna/disable-charging-alert-sound.patch
/opt/src/modifications/luna/quiet-powerd-messages.patch
/opt/src/modifications/luna/show-actual-battery-percent.patch
/opt/src/modifications/luna/powersave-cpu-scaling
/opt/src/modifications/luna/enable-dev-mode-icon.patch
/opt/src/modifications/luna/more_icons_per_row.patch
/opt/src/modifications/luna/powersave-smartreflex
/opt/src/modifications/README
/opt/src/modifications/browser
/opt/src/modifications/browser/enable-browser-downloads.patch

-Dlbpre


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
ent.patch
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).

Dlbpre


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)